{"action":"created","issue":{"url":"https://api.github.com/repos/beeglebug/pixi-tiled/issues/1","labels_url":"https://api.github.com/repos/beeglebug/pixi-tiled/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/beeglebug/pixi-tiled/issues/1/comments","events_url":"https://api.github.com/repos/beeglebug/pixi-tiled/issues/1/events","html_url":"https://github.com/beeglebug/pixi-tiled/issues/1","id":70932041,"number":1,"title":"Use new pixi middleware in v3.0.2","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-25T16:14:00Z","updated_at":"2015-04-25T16:15:57Z","closed_at":null,"body":"Going out with v3.0.2 will be this code:\r\n\r\nhttps://github.com/GoodBoyDigital/pixi.js/blob/dev/src/loaders/loader.js#L42-L55\r\n\r\nYou can register a middleware to always be on the loader that people create with `new PIXI.loaders.Loader()`.\r\n\r\nSo basically in your plugin do:\r\n\r\n```js\r\nPIXI.loaders.Loader.addPixiMiddleware(myMiddlewareFn);\r\nPIXI.loader.use(myMiddlewareFn()); // don't forget the premade one!\r\n```\r\n\r\nAnd everyone gets the benefits of your middleware transparently."},"comment":{"url":"https://api.github.com/repos/beeglebug/pixi-tiled/issues/comments/96233061","html_url":"https://github.com/beeglebug/pixi-tiled/issues/1#issuecomment-96233061","issue_url":"https://api.github.com/repos/beeglebug/pixi-tiled/issues/1","id":96233061,"user":{"login":"beeglebug","id":954416,"avatar_url":"https://avatars.githubusercontent.com/u/954416?v=3","gravatar_id":"","url":"https://api.github.com/users/beeglebug","html_url":"https://github.com/beeglebug","followers_url":"https://api.github.com/users/beeglebug/followers","following_url":"https://api.github.com/users/beeglebug/following{/other_user}","gists_url":"https://api.github.com/users/beeglebug/gists{/gist_id}","starred_url":"https://api.github.com/users/beeglebug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeglebug/subscriptions","organizations_url":"https://api.github.com/users/beeglebug/orgs","repos_url":"https://api.github.com/users/beeglebug/repos","events_url":"https://api.github.com/users/beeglebug/events{/privacy}","received_events_url":"https://api.github.com/users/beeglebug/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T16:15:57Z","updated_at":"2015-04-25T16:15:57Z","body":"Great stuff. I'll update it accordingly, thanks for the heads up.\n\nOn Sat, 25 Apr 2015 17:14 Chad Engler <notifications@github.com> wrote:\n\n> Going out with v3.0.2 will be this code:\n>\n>\n> https://github.com/GoodBoyDigital/pixi.js/blob/dev/src/loaders/loader.js#L42-L55\n>\n> You can register a middleware to always be on the loader that people\n> create with new PIXI.loaders.Loader().\n>\n> So basically in your plugin do:\n>\n> PIXI.loaders.Loader.addPixiMiddleware(myMiddlewareFn);\n> PIXI.loader.use(myMiddlewareFn()); // don't forget the premade one!\n>\n> And everyone gets the benefits of your middleware transparently.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/beeglebug/pixi-tiled/issues/1>.\n>\n"}}