mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-31 18:14:55 -05:00
Update docs for Runner.run & Runner.start
* Add runner param to Runner.run * Mark runner param as optional in both methods
This commit is contained in:
parent
773510f985
commit
8b3cbd17b2
1 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ var Common = require('./Common');
|
|||
/**
|
||||
* Continuously ticks a `Matter.Engine` by calling `Runner.tick` on the `requestAnimationFrame` event.
|
||||
* @method run
|
||||
* @param {runner} [runner]
|
||||
* @param {engine} engine
|
||||
*/
|
||||
Runner.run = function(runner, engine) {
|
||||
|
@ -208,7 +209,7 @@ var Common = require('./Common');
|
|||
/**
|
||||
* Alias for `Runner.run`.
|
||||
* @method start
|
||||
* @param {runner} runner
|
||||
* @param {runner} [runner]
|
||||
* @param {engine} engine
|
||||
*/
|
||||
Runner.start = function(runner, engine) {
|
||||
|
|
Loading…
Add table
Reference in a new issue