src/widgets/Slideshare.js
changeset 961 e1baacb52075
parent 957 4da0a5740b6c
child 965 eadb7290c325
equal deleted inserted replaced
956:7c1d08cf6956 961:e1baacb52075
    40     if (_hide) {
    40     if (_hide) {
    41         this.$.hide();
    41         this.$.hide();
    42     } else {
    42     } else {
    43         this.renderTemplate();
    43         this.renderTemplate();
    44         this.$container = this.$.find(".Ldt-SlideShare-Container");
    44         this.$container = this.$.find(".Ldt-SlideShare-Container");
    45         this.bindPopcorn("timeupdate","onTimeupdate");
    45         this.onMediaEvent("timeupdate","onTimeupdate");
    46         this.onTimeupdate();
    46         this.onTimeupdate(0);
    47     }
    47     }
    48 }
    48 }
    49 
    49 
    50 IriSP.Widgets.Slideshare.prototype.onTimeupdate = function() {
    50 IriSP.Widgets.Slideshare.prototype.onTimeupdate = function(_time) {
    51     var _list = this.getWidgetAnnotationsAtTime();
    51     var _list = this.getWidgetAnnotationsAtTime();
    52     if (_list.length) {
    52     if (_list.length) {
    53         var _description = _list[0].description,
    53         var _description = _list[0].description,
    54             _isurl = /^https?:\/\//.test(_description),
    54             _isurl = /^https?:\/\//.test(_description),
    55             _presentation = _description.replace(/#.*$/,''),
    55             _presentation = _description.replace(/#.*$/,''),