-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
videojs.bind gone in 5.0 #2322
Comments
I see this has been sort of relegated to IE8 support. I'll make a note in the migration wiki. |
Has it? I think it still makes sense to expose it because videojs's |
Yeah, we should export it. You can use our bind for sharing listener ids. |
Where do we share listener ids? Are you sure it's worthwhile having a custom version of bind()? |
Anywhere we do something like...
With the native bind that wouldn't work. I don't think we could have If you're not benefitting from that feature in the external code that uses videojs.bind(), then you should just use the native bind now. And then maybe we don't need to export this? We should probably either export it or throw a warning when it's used in 5.0. |
I'm gonna merge in the PR. If we want to discourage using this I think we should deprecate it first. |
videojs.bind is no longer exported so the native Function.prototype.bind() gets picked up by 4.x code that relied on this method.
The text was updated successfully, but these errors were encountered: