equal
deleted
inserted
replaced
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 |