-
Notifications
You must be signed in to change notification settings - Fork 525
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
Prototype.js #97
Comments
Can you point a link where we can reproduce this? I am doing a release right now |
I will try to reproduce it outside of magento tomorow |
If you can push your magento branch I can test |
So Prototype.js (< 1.7.2) actually replaces the |
For reference, prototype.js:
You can just insert this: // Magento is using a very old prototype.js version with a poor Function.prototype.bind
// forced overloading, we redefine it here so that our code works
// ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallable function
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
}
var aArgs = Array.prototype.slice.call(arguments, 1),
fToBind = this,
fNOP = function() {},
fBound = function() {
return fToBind.apply(this instanceof fNOP
? this
: oThis,
aArgs.concat(Array.prototype.slice.call(arguments)));
};
if (this.prototype) {
// native functions don't have a prototype
fNOP.prototype = this.prototype;
}
fBound.prototype = new fNOP();
return fBound;
}; Before inserting instantsearch.js |
aymeric-giraudet
pushed a commit
that referenced
this issue
Dec 8, 2022
sarahdayan
pushed a commit
that referenced
this issue
Dec 12, 2022
* fix(panel): align button and make clearer fixes #97 * chore: remove headerText
sarahdayan
pushed a commit
that referenced
this issue
Dec 14, 2022
* fix(panel): align button and make clearer fixes #97 * chore: remove headerText
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems there is a conflict with prototype.js.
This method line
return new (_bind.apply(Class, [null].concat(args)))();
fails because it is using the bind method of prototypeThe text was updated successfully, but these errors were encountered: