prototype: Fix Class.mixin to extend the class's prototype.
This commit is contained in:
parent
b923d6dd52
commit
bfba40e0cd
@ -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]
|
||||
|
@ -48,7 +48,7 @@ var Class = {
|
||||
},
|
||||
|
||||
mixin: function(destination, source) {
|
||||
return Object.extend(destination, source);
|
||||
return Object.extend(destination.prototype, source);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user