From c42598c47b12417f72a0e25d1add0e551d601380 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 10 Nov 2010 21:05:52 -0500 Subject: [PATCH] Class.extend() should not be part of the prototype (we're extending the class, not an object instance) --- lib/class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class.js b/lib/class.js index 2161d44..3908351 100644 --- a/lib/class.js +++ b/lib/class.js @@ -113,7 +113,7 @@ exports.extend = function( base ) * * @return {Object} extended class */ -Object.defineProperty( Class.prototype, 'extend', +Object.defineProperty( Class, 'extend', { value: function( props ) {