зеркало из https://github.com/mozilla/popcorn-js.git
Merge commit 'cd19946d3e15' into 0.2
This commit is contained in:
Коммит
655a65c77b
14
popcorn.js
14
popcorn.js
|
@ -295,26 +295,24 @@
|
|||
!fn && ( fn = Popcorn.nop );
|
||||
|
||||
|
||||
var timer = 0,
|
||||
self = this,
|
||||
var self = this,
|
||||
callback = function execCallback( event ) {
|
||||
|
||||
if ( this.currentTime() >= time && !timer ) {
|
||||
if ( this.currentTime() >= time && !callback.fired ) {
|
||||
|
||||
fn.call(self, event);
|
||||
callback.fired = true;
|
||||
|
||||
this.unlisten("execCallback");
|
||||
|
||||
timer++;
|
||||
fn.call(self, event);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
callback.fired = false;
|
||||
|
||||
this.listen("timeupdate", callback);
|
||||
|
||||
|
||||
|
||||
return this;
|
||||
},
|
||||
removePlugin: function( name ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче