0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-25 13:39:06 -05:00

remove deprecated backwards compatibility engine events from Matter.Runner

This commit is contained in:
liabru 2021-03-21 19:11:30 +00:00
parent 63a9e988f4
commit 76bf80eaae

View file

@ -119,7 +119,6 @@ var Common = require('./Common');
};
Events.trigger(runner, 'beforeTick', event);
Events.trigger(engine, 'beforeTick', event); // back compatibility
if (runner.isFixed) {
// fixed timestep
@ -164,7 +163,6 @@ var Common = require('./Common');
}
Events.trigger(runner, 'tick', event);
Events.trigger(engine, 'tick', event); // back compatibility
// if world has been modified, clear the render scene graph
if (engine.world.isModified
@ -192,7 +190,6 @@ var Common = require('./Common');
}
Events.trigger(runner, 'afterTick', event);
Events.trigger(engine, 'afterTick', event); // back compatibility
};
/**