- Minor updates from the code review.
authorAdil <adilflorida@gmail.com>
Thu, 13 Dec 2012 22:08:08 +0000 (17:08 -0500)
committerAdil <adilflorida@gmail.com>
Thu, 13 Dec 2012 22:08:08 +0000 (17:08 -0500)
dygraph-utils.js

index 086d8f8..6ca025f 100644 (file)
@@ -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();