mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-27 13:59:01 -05:00
deprecate Engine.run alias replaced by Runner.run
This commit is contained in:
parent
9303119629
commit
5817046eee
2 changed files with 6 additions and 1 deletions
|
@ -305,7 +305,8 @@ var Body = require('../body/Body');
|
|||
};
|
||||
|
||||
/**
|
||||
* An alias for `Runner.run`, see `Matter.Runner` for more information.
|
||||
* A deprecated alias for `Runner.run`, use `Matter.Runner.run(engine)` instead and see `Matter.Runner` for more information.
|
||||
* @deprecated use Matter.Runner.run(engine) instead
|
||||
* @method run
|
||||
* @param {engine} engine
|
||||
*/
|
||||
|
|
|
@ -28,3 +28,7 @@ Matter.Svg = require('../geometry/Svg');
|
|||
Matter.Vector = require('../geometry/Vector');
|
||||
Matter.Vertices = require('../geometry/Vertices');
|
||||
Matter.World = require('../body/World');
|
||||
|
||||
// temporary back compatibility
|
||||
Matter.Engine.run = Matter.Runner.run;
|
||||
Matter.Common.deprecated(Matter.Engine, 'run', 'Engine.run ➤ use Matter.Runner.run(engine) instead');
|
||||
|
|
Loading…
Reference in a new issue