From 0daccdb2e1a707de2841a542c39e6da86f94446f Mon Sep 17 00:00:00 2001 From: Manuel Ernst Date: Fri, 9 Nov 2018 14:00:00 +0100 Subject: [PATCH] Add return value to `run` method Currently the `run` method has no return value. It would be helpful if the method would return a reference to the animation itselves, so that code like this would be possible: ````javascript let foo = new DMX.Animation() .add(...) .run(...); ```` --- anim.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anim.js b/anim.js index e4ebff3..969424e 100644 --- a/anim.js +++ b/anim.js @@ -65,6 +65,8 @@ Anim.prototype.run = function(universe, onFinish) { ani_setup() var iid = this.interval = setInterval(ani_step, resolution) + + return this } module.exports = Anim