X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=dygraph-utils.js;h=6ca025fe0a83c0aaa91dc5a38ca5bbbd1f3879bc;hb=06d4204c8b60c71cbb94f740ef07d34011c7c906;hp=086d8f87afd6407375f41a77c96a170c158a62e5;hpb=21ebe38bb1eeae3a7fd73335a411bfd81c66d985;p=dygraphs.git diff --git a/dygraph-utils.js b/dygraph-utils.js index 086d8f8..6ca025f 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -818,7 +818,7 @@ Dygraph.createIterator = function(array, start, length, opt_predicate) { // From: http://paulirish.com/2011/requestanimationframe-for-smart-animating/ // Should be called with the window context: // Dygraph.requestAnimFrame.call(window, function() {}) -Dygraph.requestAnimFrame = (function(){ +Dygraph.requestAnimFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || @@ -843,7 +843,7 @@ Dygraph.requestAnimFrame = (function(){ * @private */ Dygraph.repeatAndCleanup = function(repeatFn, maxFrames, framePeriodInMillis, - cleanupFn) { + cleanupFn) { var frameNumber = 0; var previousFrameNumber; var startTime = new Date().getTime();