Skip to content

Commit 2f61f45

Browse files
committed
feat: 🎸 (xgplayer) add runHooks method to enhance hook functionality
1 parent 137988e commit 2f61f45

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/xgplayer/src/player.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2638,6 +2638,13 @@ class Player extends MediaProxy {
26382638
return hook.call(this, ...arguments)
26392639
}
26402640

2641+
/**
2642+
* @param {...any} args
2643+
*/
2644+
runHooks (...args) {
2645+
return runHooks.call(this, ...arguments)
2646+
}
2647+
26412648
/**
26422649
* @param { string } hookName
26432650
* @param { (player: any, ...args) => boolean | Promise<any> } handler

0 commit comments

Comments
 (0)