1
0
Fork 0

Extendig concrete classes should no longer consume an instance id unnecessarily

- This is not tested because it would be testing too closely to the implementation
closure/master
Mike Gerwitz 2011-05-10 23:34:50 -04:00
parent 6325b0cf17
commit d542f9d803
1 changed files with 3 additions and 3 deletions

View File

@ -321,9 +321,6 @@ function createConcreteCtor( cname, members )
return new ClassInstance(); return new ClassInstance();
} }
// generate and store unique instance id
attachInstanceId( this, ++instance_id );
initInstance( this ); initInstance( this );
this.__initProps(); this.__initProps();
@ -335,6 +332,9 @@ function createConcreteCtor( cname, members )
return; return;
} }
// generate and store unique instance id
attachInstanceId( this, ++instance_id );
// call the constructor, if one was provided // call the constructor, if one was provided
if ( this.__construct instanceof Function ) if ( this.__construct instanceof Function )
{ {