src/js/widgets.js
branchnew-model
changeset 876 03967b6ada7c
parent 875 43629caa77bc
child 900 7673d645a8e0
--- 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.
  */