fixing prototype bug. popcorn-port
authorhamidouk
Tue, 25 Oct 2011 14:32:05 +0200
branchpopcorn-port
changeset 139 ba2b3c15bd47
parent 138 37b70a8c61a2
child 140 1f90756342e2
fixing prototype bug.
src/js/widgets/annotationsWidget.js
src/js/widgets/segmentsWidget.js
--- a/src/js/widgets/annotationsWidget.js	Tue Oct 25 14:31:28 2011 +0200
+++ b/src/js/widgets/annotationsWidget.js	Tue Oct 25 14:32:05 2011 +0200
@@ -4,7 +4,7 @@
 };
 
 
-IriSP.AnnotationsWidget.prototype = new IriSP.Widget;
+IriSP.AnnotationsWidget.prototype = new IriSP.Widget();
 
 IriSP.AnnotationsWidget.prototype.clear = function() {
     IriSP.jQuery("#Ldt-SaTitle").text("");
@@ -42,7 +42,7 @@
 
   var annotationMarkup = Mustache.to_html(IriSP.annotationWidget_template, {"share_template" : IriSP.share_template});
 	IriSP.jQuery("#Ldt-Ligne").append(annotationMarkup);
-  
+
   var annotations = this._serializer._data.annotations;
 	for (i in annotations) {    
     var annotation = annotations[i];
--- a/src/js/widgets/segmentsWidget.js	Tue Oct 25 14:31:28 2011 +0200
+++ b/src/js/widgets/segmentsWidget.js	Tue Oct 25 14:32:05 2011 +0200
@@ -2,7 +2,7 @@
   IriSP.Widget.call(this, Popcorn, config, Serializer);  
 };
 
-IriSP.SegmentsWidget.prototype = new IriSP.Widget;
+IriSP.SegmentsWidget.prototype = new IriSP.Widget();
 
 IriSP.SegmentsWidget.prototype.draw = function() {