From: Adil Date: Thu, 13 Dec 2012 22:08:08 +0000 (-0500) Subject: - Minor updates from the code review. X-Git-Tag: v1.0.0~142^2~1 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=bec100ae3d028a68261f5fd233722e9b5cf2a60a;p=dygraphs.git - Minor updates from the code review. --- 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();