fixing prototype bug.
--- 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() {