1
0
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:
Pat O'Neill
2022-10-21 12:19:01 -04:00
parent 54195f0b28
commit b8ee8858f8
20 changed files with 38 additions and 36 deletions

View File

@ -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;