From a1ed610681f20076013dfe43cd01adbfb74bf8d2 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 5 Apr 2011 22:09:02 -0400 Subject: [PATCH] More efficient inheritance check for __initProps()'s __inst definition --- lib/class_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class_builder.js b/lib/class_builder.js index e3df1cd..4456697 100644 --- a/lib/class_builder.js +++ b/lib/class_builder.js @@ -542,7 +542,7 @@ function attachPropInit( prototype, properties, members, cid ) // property/visibility object) internally (this will translate to // this.__inst from within a method), but only if we're on our final // object (not a parent) - if ( typeof parent_init !== 'function' ) + if ( !inherit ) { util.defineSecureProp( vis, '__inst', this ); }