equal
deleted
inserted
replaced
14 }; |
14 }; |
15 |
15 |
16 IriSP.ArrowWidget.prototype.draw = function() { |
16 IriSP.ArrowWidget.prototype.draw = function() { |
17 var templ = Mustache.to_html(IriSP.arrowWidget_template, {}); |
17 var templ = Mustache.to_html(IriSP.arrowWidget_template, {}); |
18 this.selector.append(templ); |
18 this.selector.append(templ); |
|
19 this._Popcorn.listen("IriSP.SegmentsWidget.segmentClick", IriSP.wrap(this, this.segmentClickHandler)); |
19 }; |
20 }; |
|
21 |
|
22 IriSP.ArrowWidget.prototype.segmentClickHandler = function(percents) { |
|
23 this.selector.children(".Ldt-arrowWidget").css("left", percents + "%"); |
|
24 } |