src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 638 1cbe440312e1
parent 637 d6f477188c0a
child 687 3583e8b447f5
equal deleted inserted replaced
637:d6f477188c0a 638:1cbe440312e1
    46   this.selector.addClass("Ldt-SegmentsWidget");
    46   this.selector.addClass("Ldt-SegmentsWidget");
    47   this.selector.append(Mustache.to_html(IriSP.overlay_marker_template));
    47   this.selector.append(Mustache.to_html(IriSP.overlay_marker_template));
    48           
    48           
    49   var view_type = this._serializer.getChapitrage();
    49   var view_type = this._serializer.getChapitrage();
    50   if (typeof(view_type) === "undefined") {
    50   if (typeof(view_type) === "undefined") {
    51     console.log(this._serializer.getNonTweetIds());
       
    52     view_type = this._serializer.getNonTweetIds()[0];  
    51     view_type = this._serializer.getNonTweetIds()[0];  
    53   }
    52   }
    54   this.positionMarker = this.selector.children(":first");
    53   this.positionMarker = this.selector.children(":first");
    55   
    54   
    56   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater));
    55   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater));