src/widgets/Sparkline.js
changeset 1013 392ddcd212d7
parent 981 982d2226771c
child 1072 ac1eacb3aa33
--- a/src/widgets/Sparkline.js	Mon Sep 30 14:39:34 2013 +0200
+++ b/src/widgets/Sparkline.js	Tue Oct 01 15:41:46 2013 +0200
@@ -48,7 +48,7 @@
         _d = IriSP._(_y).reduce(function(_memo, _v, _k) {
                return _memo + ( _k
                    ? 'C' + (_k * _width) + ' ' + _y[_k - 1] + ' ' + (_k * _width) + ' ' + _v + ' ' + ((_k + .5) * _width) + ' ' + _v
-                   : 'M0 ' + _v + 'L' + (.5*_width) + ' ' + _v )
+                   : 'M0 ' + _v + 'L' + (.5*_width) + ' ' + _v );
             },'') + 'L' + this.width + ' ' + _y[_y.length - 1],
         _d2 = _d + 'L' + this.width + ' ' + this.height + 'L0 ' + this.height;
     
@@ -78,7 +78,7 @@
     });
     
     this.onMediaEvent("timeupdate","onTimeupdate");
-}
+};
 
 IriSP.Widgets.Sparkline.prototype.onTimeupdate = function(_time) {
     var _x = Math.floor( this.width * _time / this.media.duration);
@@ -88,4 +88,4 @@
     this.ligneProgress.attr({
         "path" : "M" + _x + " 0L" + _x + " " + this.height
     });
-}
+};