1
0
Fork 0

Class.isAbstract() now defined using define_secure_prop

closure/master
Mike Gerwitz 2010-11-14 20:31:23 -05:00
parent 113e3b974f
commit 746a9ee53d
1 changed files with 2 additions and 2 deletions

View File

@ -321,10 +321,10 @@ function attach_abstract( func, methods )
*
* @return {Boolean} true if class is abstract, otherwise false
*/
func.isAbstract = function()
define_secure_prop( func, 'isAbstract', function()
{
return is_abstract;
};
});
// attach the list of abstract methods to the class (make the copy of the
// methods to ensure that they won't be gc'd or later modified and screw up