1
0
Fork 0

Removed old code from attach_extend()

closure/master
Mike Gerwitz 2010-11-14 22:07:04 -05:00
parent e26d7971ce
commit f9d7dca4b3
1 changed files with 4 additions and 6 deletions

View File

@ -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 );
});
}