the widget now displays correctly the annotations. popcorn-port
authorhamidouk
Wed, 19 Oct 2011 11:54:24 +0200
branchpopcorn-port
changeset 95 da3ab0bfadf3
parent 94 457ab20a99a9
child 96 b198a2ba31ee
the widget now displays correctly the annotations.
src/js/widgets.js
--- a/src/js/widgets.js	Wed Oct 19 10:39:04 2011 +0200
+++ b/src/js/widgets.js	Wed Oct 19 11:54:24 2011 +0200
@@ -200,7 +200,7 @@
     var end = Math.round((+ annotation.end) / 1000);
 
     this._Popcorn = this._Popcorn.code({start: begin, end: end, 
-                                        onStart: function() { console.log(begin, end); _this.displayAnnotation(annotation); }, 
-                                        onEnd: function() { console.log("end", end); }});                                             
+                                        onStart: 
+                                          function(annotation) { return function() { _this.displayAnnotation(annotation); } }(annotation) });                                             
   }
 };