Permalink
Browse files

Make Object.prototype.extend work correctly

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
sstephenson committed Jun 27, 2005
1 parent 9965993 commit 05ef7898bd42970a45a6727b1cf44338982ab2c6
Showing with 2 additions and 2 deletions.
  1. +2 −2 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) {

0 comments on commit 05ef789

Please sign in to comment.