Merge pull request #69 from seriousManual/run
Add return value to `run` method.
This commit is contained in:
commit
0dbda4ba80
1 changed files with 2 additions and 0 deletions
2
anim.js
2
anim.js
|
@ -74,6 +74,8 @@ Anim.prototype.run = function(universe, onFinish) {
|
||||||
|
|
||||||
ani_setup()
|
ani_setup()
|
||||||
var iid = this.interval = setInterval(ani_step, resolution)
|
var iid = this.interval = setInterval(ani_step, resolution)
|
||||||
|
|
||||||
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Anim
|
module.exports = Anim
|
||||||
|
|
Loading…
Reference in a new issue