src/js/widgets.js
branchnew-model
changeset 900 7673d645a8e0
parent 876 03967b6ada7c
child 908 f56199193fad
equal deleted inserted replaced
898:d05b8920dbaa 900:7673d645a8e0
    99 IriSP.Widgets.Widget.prototype.bindPopcorn = function(_popcornEvent, _functionName) {
    99 IriSP.Widgets.Widget.prototype.bindPopcorn = function(_popcornEvent, _functionName) {
   100     this.player.popcorn.listen(_popcornEvent, this.functionWrapper(_functionName))
   100     this.player.popcorn.listen(_popcornEvent, this.functionWrapper(_functionName))
   101 }
   101 }
   102 
   102 
   103 IriSP.Widgets.Widget.prototype.getWidgetAnnotations = function() {
   103 IriSP.Widgets.Widget.prototype.getWidgetAnnotations = function() {
   104     return typeof this.annotation_type !== "undefined" && this.annotation_type ? this.source.getAnnotationsByTypeTitle(this.annotation_type) : this.source.getAnnotations();
   104     var _curmedia = this.source.currentMedia;
       
   105     return typeof this.annotation_type !== "undefined" && this.annotation_type ? _curmedia.getAnnotationsByTypeTitle(this.annotation_type) : _curmedia.getAnnotations();
   105 }
   106 }
   106 
   107 
   107 /**
   108 /**
   108  * This method responsible of drawing a widget on screen.
   109  * This method responsible of drawing a widget on screen.
   109  */
   110  */