src/js/widgets.js
branchnew-model
changeset 900 7673d645a8e0
parent 876 03967b6ada7c
child 908 f56199193fad
--- a/src/js/widgets.js	Fri May 11 15:42:22 2012 +0200
+++ b/src/js/widgets.js	Fri May 11 19:22:13 2012 +0200
@@ -101,7 +101,8 @@
 }
 
 IriSP.Widgets.Widget.prototype.getWidgetAnnotations = function() {
-    return typeof this.annotation_type !== "undefined" && this.annotation_type ? this.source.getAnnotationsByTypeTitle(this.annotation_type) : this.source.getAnnotations();
+    var _curmedia = this.source.currentMedia;
+    return typeof this.annotation_type !== "undefined" && this.annotation_type ? _curmedia.getAnnotationsByTypeTitle(this.annotation_type) : _curmedia.getAnnotations();
 }
 
 /**