зеркало из https://github.com/mozilla/popcorn-js.git
Rename the error event emitted by plugins to pluginerror [#1104]
This commit is contained in:
Родитель
77a02d40bf
Коммит
6e56fc14d1
|
@ -1554,7 +1554,7 @@
|
|||
|
||||
// Trigger an error that the instance can listen for
|
||||
// and react to
|
||||
this.emit( "error", Popcorn.plugin.errors );
|
||||
this.emit( "pluginerror", Popcorn.plugin.errors );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2209,7 +2209,7 @@ test( "Exceptions", function() {
|
|||
plus();
|
||||
}).currentTime( 0 ).play();
|
||||
|
||||
this.on( "error", function( errors ) {
|
||||
this.on( "pluginerror", function( errors ) {
|
||||
ok( errors.length, "`errors` array has error objects" );
|
||||
plus();
|
||||
ok( errors[ 0 ].thrown, "`errors[ 0 ].thrown` property exists" );
|
||||
|
|
Загрузка…
Ссылка в новой задаче