1
0
Fork 0

More efficient inheritance check for __initProps()'s __inst definition

closure/master
Mike Gerwitz 2011-04-05 22:09:02 -04:00
parent 7560d57619
commit a1ed610681
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ function attachPropInit( prototype, properties, members, cid )
// property/visibility object) internally (this will translate to // property/visibility object) internally (this will translate to
// this.__inst from within a method), but only if we're on our final // this.__inst from within a method), but only if we're on our final
// object (not a parent) // object (not a parent)
if ( typeof parent_init !== 'function' ) if ( !inherit )
{ {
util.defineSecureProp( vis, '__inst', this ); util.defineSecureProp( vis, '__inst', this );
} }