equal
deleted
inserted
replaced
71 if (_this.media_id) { |
71 if (_this.media_id) { |
72 _this.media = this.getElement(_this.media_id); |
72 _this.media = this.getElement(_this.media_id); |
73 } else { |
73 } else { |
74 var _mediaopts = { |
74 var _mediaopts = { |
75 is_mashup: _this.is_mashup || false |
75 is_mashup: _this.is_mashup || false |
76 } |
76 }; |
77 _this.media = _this.source.getCurrentMedia(_mediaopts); |
77 _this.media = _this.source.getCurrentMedia(_mediaopts); |
78 } |
78 } |
79 |
79 |
80 _this.draw(); |
80 _this.draw(); |
81 _this.player.trigger("widget-loaded"); |
81 _this.player.trigger("widget-loaded"); |
118 var _this = this, |
118 var _this = this, |
119 _function = this[_name]; |
119 _function = this[_name]; |
120 if (typeof _function !== "undefined") { |
120 if (typeof _function !== "undefined") { |
121 return function() { |
121 return function() { |
122 return _function.apply(_this, Array.prototype.slice.call(arguments, 0)); |
122 return _function.apply(_this, Array.prototype.slice.call(arguments, 0)); |
123 } |
123 }; |
124 } else { |
124 } else { |
125 console.log("Error, Unknown function IriSP.Widgets." + this.type + "." + _name) |
125 console.log("Error, Unknown function IriSP.Widgets." + this.type + "." + _name); |
126 } |
126 } |
127 }; |
127 }; |
128 |
128 |
129 IriSP.Widgets.Widget.prototype.getFunctionOrName = function(_functionOrName) { |
129 IriSP.Widgets.Widget.prototype.getFunctionOrName = function(_functionOrName) { |
130 switch (typeof _functionOrName) { |
130 switch (typeof _functionOrName) { |