{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/2043","labels_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2043/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2043/comments","events_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2043/events","html_url":"https://github.com/pixijs/pixi.js/issues/2043","id":100374043,"number":2043,"title":"loading the same named asset more than once throws an error","user":{"login":"mreinstein","id":718067,"avatar_url":"https://avatars.githubusercontent.com/u/718067?v=3","gravatar_id":"","url":"https://api.github.com/users/mreinstein","html_url":"https://github.com/mreinstein","followers_url":"https://api.github.com/users/mreinstein/followers","following_url":"https://api.github.com/users/mreinstein/following{/other_user}","gists_url":"https://api.github.com/users/mreinstein/gists{/gist_id}","starred_url":"https://api.github.com/users/mreinstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mreinstein/subscriptions","organizations_url":"https://api.github.com/users/mreinstein/orgs","repos_url":"https://api.github.com/users/mreinstein/repos","events_url":"https://api.github.com/users/mreinstein/events{/privacy}","received_events_url":"https://api.github.com/users/mreinstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-11T18:19:06Z","updated_at":"2015-08-29T00:44:55Z","closed_at":null,"body":"here is the code that gets invoked every time one of my monsters is instantiated:\r\n\r\n```\r\nloader = new PIXI.loaders.Loader()\r\nloader.add 'spineSpider', 'assets/spine-spider/skeleton.json'\r\nloader.load (loader, resources) ->\r\n  animation = new spine.Spine resources.spineSpider.spineData\r\n```\r\n\r\nthis works fine the first time, but subsequent instantiations generate this error:\r\n\r\n```\r\nUncaught Error: Resource with name \"spineSpider_atlas\" already exists.\r\n```\r\n\r\nam I invoking the loader wrong? I've tried also adding a check before loading, to see if the resource is already loaded, but it doesnt seem to work:\r\n\r\n```\r\nloader = new PIXI.loaders.Loader()\r\nif loader.resources.spineSpider\r\n   animation = new spine.Spine loader.resources.spineSpider.spineData\r\nelse\r\n  # load the animation via .load() ...\r\n```"},"comment":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/comments/135922681","html_url":"https://github.com/pixijs/pixi.js/issues/2043#issuecomment-135922681","issue_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2043","id":135922681,"user":{"login":"englercj","id":944497,"avatar_url":"https://avatars.githubusercontent.com/u/944497?v=3","gravatar_id":"","url":"https://api.github.com/users/englercj","html_url":"https://github.com/englercj","followers_url":"https://api.github.com/users/englercj/followers","following_url":"https://api.github.com/users/englercj/following{/other_user}","gists_url":"https://api.github.com/users/englercj/gists{/gist_id}","starred_url":"https://api.github.com/users/englercj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/englercj/subscriptions","organizations_url":"https://api.github.com/users/englercj/orgs","repos_url":"https://api.github.com/users/englercj/repos","events_url":"https://api.github.com/users/englercj/events{/privacy}","received_events_url":"https://api.github.com/users/englercj/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T00:44:55Z","updated_at":"2015-08-29T00:44:55Z","body":"It already has caching for free, with no API changes :)\r\n\r\nIt is possibly true that the loader doesn't need to throw if a resource already is loaded, but it is there for things just like this. You are encountering some bug, that never would've been caught if it just failed to load silently.\r\n\r\nI'll look into this soon."}}