PrototypeJS 1.7.1 handles Function.bind
as a polyfill instead of assuming it does not exist.
In the latest version it will check if the bind()
method is available on the Function prototype before it adds it (or replaces)
If you can't upgrade then find this block
return {
argumentNames: argumentNames,
bind: bind,
bindAsEventListener: bindAsEventListener,
curry: curry,
delay: delay,
defer: defer,
wrap: wrap,
methodize: methodize
}
and replace the bind definition like this
bind: Function.prototype.bind ? Function.prototype.bind : bind,