diff --git a/core/src/plugins/gui.ajax/res/js/vendor/prototype/prototype.js b/core/src/plugins/gui.ajax/res/js/vendor/prototype/prototype.js index 272b82e050..e4e3e5b4e9 100644 --- a/core/src/plugins/gui.ajax/res/js/vendor/prototype/prototype.js +++ b/core/src/plugins/gui.ajax/res/js/vendor/prototype/prototype.js @@ -441,16 +441,19 @@ Object.extend(Function.prototype, (function() { }; } - return { + var res = { argumentNames: argumentNames, - bind: bind, bindAsEventListener: bindAsEventListener, curry: curry, delay: delay, defer: defer, wrap: wrap, methodize: methodize + }; + if(!Function.prototype.bind){ + res['bind'] = bind; } + return res; })());