diff --git a/ast/libraries.ts b/ast/libraries.ts index fb326a0a..0c73cf31 100644 --- a/ast/libraries.ts +++ b/ast/libraries.ts @@ -117,7 +117,9 @@ module TDev.AST { } public isBrowsable() :boolean { - return !(this._flags & PropertyFlags.NonBrowsable) && !this.isLibInit(); + return !(this._flags & PropertyFlags.NonBrowsable) + && ((this._flags & PropertyFlags.LibsOnly) == 0 || !Script || Script.isLibrary) + && !this.isLibInit(); } public toString()