Fix issue with "Illegal invocation" in cancelAnimFrame.

This commit is contained in:
Bjørnar Grip Fjær 2015-01-25 18:31:35 +01:00
parent a5550cef6b
commit 6f6f80e6d7

View File

@ -825,7 +825,7 @@
},
stop : function(){
// Stops any current animation loop occuring
helpers.cancelAnimFrame.call(root, this.animationFrame);
helpers.cancelAnimFrame(this.animationFrame);
return this;
},
resize : function(callback){