From f9d7dca4b32842cbb3f3153ca4bbb07269623410 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 14 Nov 2010 22:07:04 -0500 Subject: [PATCH] Removed old code from attach_extend() --- lib/class.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/class.js b/lib/class.js index 58c99d3..f9b5058 100644 --- a/lib/class.js +++ b/lib/class.js @@ -78,6 +78,8 @@ exports.abstractMethod = function( definition ) function Class() {}; + + /** * Copies properties to the destination object * @@ -445,13 +447,9 @@ function attach_extend( func ) * * @return {Object} extended class */ - var ext_method = function( props ) + define_secure_prop( func, 'extend', function( props ) { return extend( this, props ); - }; - - // if defineProperty is unsupported, do it the old fashioned way (it's just - // less restrictive) - define_secure_prop( func, 'extend', ext_method ); + }); }