src/widgets/MediaList.js
changeset 983 97fef7a4b189
parent 982 cfcbac34d020
child 1013 392ddcd212d7
--- a/src/widgets/MediaList.js	Fri Nov 16 17:36:56 2012 +0100
+++ b/src/widgets/MediaList.js	Wed Nov 21 16:33:51 2012 +0100
@@ -61,10 +61,8 @@
     this.renderTemplate();
     var _this = this;
     if (typeof this.media.getMedias === "function") {
-        this.media.getMedias().forEach(function(_m) {
-            _m.on("enter", function() {
-                _this.redraw(_m);
-            });
+        this.media.on("enter-annotation", function(_a) {
+            _this.redraw(_a.getMedia());
         })
     }
     this.redraw();