--- a/src/js/widgets.js Mon Apr 23 19:11:08 2012 +0200
+++ b/src/js/widgets.js Tue Apr 24 20:25:40 2012 +0200
@@ -100,6 +100,10 @@
this.player.popcorn.listen(_popcornEvent, this.functionWrapper(_functionName))
}
+IriSP.Widgets.Widget.prototype.getWidgetAnnotations = function() {
+ return typeof this.annotation_type !== "undefined" && this.annotation_type ? this.source.getAnnotationsByTypeTitle(this.annotation_type) : this.source.getAnnotations();
+}
+
/**
* This method responsible of drawing a widget on screen.
*/