equal
deleted
inserted
replaced
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 */ |