src/widgets/MediaList.js
changeset 983 97fef7a4b189
parent 982 cfcbac34d020
child 1013 392ddcd212d7
equal deleted inserted replaced
982:cfcbac34d020 983:97fef7a4b189
    59 IriSP.Widgets.MediaList.prototype.draw = function() {
    59 IriSP.Widgets.MediaList.prototype.draw = function() {
    60     this.$.addClass("Ldt-MediaListWidget")
    60     this.$.addClass("Ldt-MediaListWidget")
    61     this.renderTemplate();
    61     this.renderTemplate();
    62     var _this = this;
    62     var _this = this;
    63     if (typeof this.media.getMedias === "function") {
    63     if (typeof this.media.getMedias === "function") {
    64         this.media.getMedias().forEach(function(_m) {
    64         this.media.on("enter-annotation", function(_a) {
    65             _m.on("enter", function() {
    65             _this.redraw(_a.getMedia());
    66                 _this.redraw(_m);
       
    67             });
       
    68         })
    66         })
    69     }
    67     }
    70     this.redraw();
    68     this.redraw();
    71 };
    69 };
    72 
    70