coter Posted September 12, 2015 Share Posted September 12, 2015 In Google I find the themes in which they say that no more events. But then I find a more recent topic in which they say that the events exist.In pixi there are events or all of them removed? There is an analog ADDED_TO_STAGE? Quote Link to comment Share on other sites More sharing options...
coter Posted September 12, 2015 Author Share Posted September 12, 2015 He figured. It used pixi was just a render library, and now became a full-fledged engine. Thank you! I'm not mistaken? Quote Link to comment Share on other sites More sharing options...
coter Posted September 12, 2015 Author Share Posted September 12, 2015 https://github.com/primus/eventemitter3/blob/master/index.js pixi uses these events???switch (len) {case 1: return listeners.fn.call(listeners.context), true;case 2: return listeners.fn.call(listeners.context, a1), true;case 3: return listeners.fn.call(listeners.context, a1, a2), true;case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;} Who wrote this code??? Quote Link to comment Share on other sites More sharing options...
xerver Posted September 12, 2015 Share Posted September 12, 2015 PIxi uses EventEmitter3 that you linked, that switch case is to catch many common usages and use a faster code path than the slow path below that switch-case. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.