prototype: Fix Class.mixin to extend the class's prototype.

This commit is contained in:
Sam Stephenson 2007-08-18 22:58:13 +00:00
parent b923d6dd52
commit bfba40e0cd
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Fix Class.mixin to extend the class's prototype. [Mislav Marohnić]
* Fix superclass method call breakage from [7337]. [Mislav Marohnić, sam]
* Change Class.extend to allow for superclass method resolution and remove Class.inherit. Closes #9274. [Samuel Lebeau]

View File

@ -48,7 +48,7 @@ var Class = {
},
mixin: function(destination, source) {
return Object.extend(destination, source);
return Object.extend(destination.prototype, source);
}
};