mirror of
https://github.com/videojs/video.js.git
synced 2025-01-19 10:54:16 +02:00
Refactor on function in utils/events.js
This commit is contained in:
parent
9ed2e0a524
commit
df64c8a3ee
@ -305,7 +305,7 @@ export function on(elem, type, fn) {
|
||||
for (let m = 0, n = handlersCopy.length; m < n; m++) {
|
||||
if (event.isImmediatePropagationStopped()) {
|
||||
break;
|
||||
} else {
|
||||
}
|
||||
try {
|
||||
handlersCopy[m].call(elem, event, hash);
|
||||
} catch (e) {
|
||||
@ -313,7 +313,6 @@ export function on(elem, type, fn) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user