src/js/widgets-container/widget.js
changeset 1049 4e8b3df6e5be
parent 1033 c20df1c080e6
child 1068 7623f9af9272
equal deleted inserted replaced
1048:13211bca0256 1049:4e8b3df6e5be
    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 
       
    81         if (_this.pre_draw_callback){
       
    82             IriSP.jQuery.when(_this.pre_draw_callback()).done(_this.draw());
       
    83         }
       
    84         else {
       
    85             _this.draw();
       
    86         }
    81         _this.player.trigger("widget-loaded");
    87         _this.player.trigger("widget-loaded");
    82     }
    88     }
    83     
    89     
    84     if (this.metadata) {
    90     if (this.metadata) {
    85         /* Getting metadata */
    91         /* Getting metadata */