diff options
-rw-r--r-- | actionpack/lib/action_view/helpers/javascripts/prototype.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js index 775ea76804..eefb6e82b8 100644 --- a/actionpack/lib/action_view/helpers/javascripts/prototype.js +++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js @@ -32,8 +32,8 @@ Object.extend = function(destination, source) { return destination; } -Object.prototype.extend = function() { - return Object.extend.apply(this, arguments); +Object.prototype.extend = function(object) { + return Object.extend.apply(this, [this, object]); } Function.prototype.bind = function(object) { |