From: Dan Vanderkam Date: Sat, 12 Dec 2009 00:17:49 +0000 (-0800) Subject: update combined X-Git-Tag: v1.0.0~803 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=e244a0d74d204814400cc43ea8deb7c1e2d5625e;p=dygraphs.git update combined --- diff --git a/dygraph-combined.js b/dygraph-combined.js index 8b1628e..42928fc 100644 --- a/dygraph-combined.js +++ b/dygraph-combined.js @@ -1298,7 +1298,7 @@ for(var i=0;i<_235.length;i++){ var data=_235[i][1]; var y=data[1]; _237[i]=[_235[i][0],[y,y-data[0],data[2]-y]]; -if(y&&!isNaN(y)){ +if(y!=null&&!isNaN(y)){ low+=data[0]; mid+=y; high+=data[2]; @@ -1306,7 +1306,7 @@ _246+=1; } if(i-_236>=0){ var prev=_235[i-_236]; -if(prev[1][1]&&!isNaN(prev[1][1])){ +if(prev[1][1]!=null&&!isNaN(prev[1][1])){ low-=prev[1][0]; mid-=prev[1][1]; high-=prev[1][2]; @@ -1326,7 +1326,7 @@ var sum=0; var _250=0; for(var j=Math.max(0,i-_236+1);j