More efficient inheritance check for __initProps()'s __inst definition
parent
7560d57619
commit
a1ed610681
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue