diff --git a/lib/ace/test/mockrenderer.js b/lib/ace/test/mockrenderer.js index 03dd9693..381a7918 100644 --- a/lib/ace/test/mockrenderer.js +++ b/lib/ace/test/mockrenderer.js @@ -107,8 +107,8 @@ MockRenderer.prototype.on = function() { MockRenderer.prototype.updateCursor = function() { }; -MockRenderer.prototype.animateScrolling = function(scrollFunc, self) { - scrollFunc.call(self); +MockRenderer.prototype.animateScrolling = function(fromValue, callback) { + callback && callback(); }; MockRenderer.prototype.scrollToX = function(scrollTop) {};