mirror of
https://github.com/videojs/video.js.git
synced 2025-07-17 01:42:41 +02:00
refactor: rename fn.bind to fn.bind_ to strongly indicate it should not be used externally (#7940)
This commit is contained in:
@ -18,10 +18,10 @@ QUnit.test('create a real player and dispose', function(assert) {
|
||||
|
||||
// TODO: remove this code when we have a videojs debug build
|
||||
// see https://github.com/videojs/video.js/issues/5858
|
||||
old.bind = Fn.bind;
|
||||
old.bind_ = Fn.bind_;
|
||||
|
||||
Fn.stub_bind(function(context, fn, uid) {
|
||||
const retval = old.bind(context, fn, uid);
|
||||
Fn.stub_bind_(function(context, fn, uid) {
|
||||
const retval = old.bind_(context, fn, uid);
|
||||
|
||||
retval.og_ = fn.og_ || fn;
|
||||
retval.cx_ = fn.cx_ || context;
|
||||
|
Reference in New Issue
Block a user