From bfba40e0cda57a214a79fcce3acfa8a8d2bbeeb0 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Sat, 18 Aug 2007 22:58:13 +0000 Subject: [PATCH] prototype: Fix Class.mixin to extend the class's prototype. --- CHANGELOG | 2 ++ src/base.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index aff192b..4f1af37 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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] diff --git a/src/base.js b/src/base.js index 9bb02ea..597a78f 100644 --- a/src/base.js +++ b/src/base.js @@ -48,7 +48,7 @@ var Class = { }, mixin: function(destination, source) { - return Object.extend(destination, source); + return Object.extend(destination.prototype, source); } };