From bec100ae3d028a68261f5fd233722e9b5cf2a60a Mon Sep 17 00:00:00 2001 From: Adil Date: Thu, 13 Dec 2012 17:08:08 -0500 Subject: [PATCH] - Minor updates from the code review. --- dygraph-utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.7.4