X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-utils.js;h=1d1623fe5d5914075b8e34e6b924d08345d03c69;hb=960eed90ac4bc6fa3f9a41ca3db193692462c5fb;hp=6ca025fe0a83c0aaa91dc5a38ca5bbbd1f3879bc;hpb=3c3b0a9da6dce1301dcccc6968e30b4792d4d3bd;p=dygraphs.git diff --git a/dygraph-utils.js b/dygraph-utils.js index 6ca025f..1d1623f 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -873,7 +873,7 @@ Dygraph.repeatAndCleanup = function(repeatFn, maxFrames, framePeriodInMillis, repeatFn(maxFrameArg); // Ensure final call with maxFrameArg. cleanupFn(); } else { - if (frameDelta != 0) { // Don't call repeatFn with duplicate frames. + if (frameDelta !== 0) { // Don't call repeatFn with duplicate frames. repeatFn(frameNumber); } loop(); @@ -1029,7 +1029,6 @@ Dygraph.regularShape_ = function( delta = delta || Math.PI * 2 / sides; ctx.beginPath(); - var first = true; var initialAngle = rotationRadians; var angle = initialAngle;