--- a/src/widgets/Arrow.js Mon Sep 30 14:39:34 2013 +0200
+++ b/src/widgets/Arrow.js Tue Oct 01 15:41:46 2013 +0200
@@ -15,7 +15,7 @@
stroke_color: "#b7b7b7",
stroke_width: 1.5,
animation_speed: 20
-}
+};
IriSP.Widgets.Arrow.prototype.draw = function() {
this.height = this.arrow_height + this.base_height;
@@ -33,7 +33,7 @@
fill: this.fill_url ? ( 'url(' + this.fill_url + ')' ) : this.fill_color
});
this.moveToX(0);
-}
+};
IriSP.Widgets.Arrow.prototype.drawAt = function(_x) {
_x = Math.max(0, Math.min(_x, this.width));
@@ -53,7 +53,7 @@
this.svgArrow.attr({
path: _d
});
-}
+};
IriSP.Widgets.Arrow.prototype.moveToX = function(_x) {
this.targetX = Math.max(0, Math.min(_x, this.width));
@@ -61,14 +61,14 @@
this.animInterval = window.setInterval(
this.functionWrapper("increment"),
40
- )
+ );
}
this.increment();
-}
+};
IriSP.Widgets.Arrow.prototype.moveToTime = function(_t) {
this.moveToX(this.width * _t / this.media.duration);
-}
+};
IriSP.Widgets.Arrow.prototype.increment = function() {
if (typeof this.currentX === "undefined") {
@@ -85,4 +85,4 @@
this.animInterval = undefined;
}
this.drawAt(this.currentX);
-}
+};