Skip to content
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

use custom bind where non-standard mootools bind could cause issues #3544

Closed
wants to merge 4 commits into from

Conversation

snapwich
Copy link
Collaborator

@snapwich snapwich commented Feb 11, 2019

Type of change

  • Bugfix

Description of change

snapwich/fun-hooks#1 highlighted an issue where MooTools with the compatibility layer being present on the page can cause non-standard behavior with Function.prototype.bind

Not really a bug in Prebid.js, but probably worth avoiding if we can (as it could still cause issues with Prebid.js installs). This pull-request updates incompatible usages of bind to use our custom utils.bind which will be either Function.prototype.bind if the incompatible MooTools bind is not detected, or our custom implementation of the bind function if it is detected. Also updates fun-hooks dependency to use version with similar fix.

Copy link
Contributor

@idettman idettman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@idettman
Copy link
Contributor

package-lock needs to be resolved

@snapwich snapwich added needs 2nd review Core module updates require two approvals from the core team and removed needs update labels Feb 13, 2019
@snapwich
Copy link
Collaborator Author

updated

@snapwich
Copy link
Collaborator Author

Since this is similar to #3574 and they both include fixes for fun-hooks, I merged this into #3574 and am closing this.

@snapwich snapwich closed this Feb 22, 2019
@snapwich snapwich deleted the mootools-bind-fix branch February 22, 2019 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants