From 8da26654cdf8bcee4edcd99ee278958f6fd38c64 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Jul 2010 13:57:04 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 0a7eeed..b9a7d1f 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -325,6 +325,7 @@ ScopeParser.prototype = { //println(""+token.data+""); if (token.props) { + var curTS = this.ts; for (var prop in token.props) { if (token.props[prop].val.data == 'function') { // parse a function.. @@ -332,12 +333,13 @@ ScopeParser.prototype = { continue; } // key value.. - var curTS = this.ts; + this.ts = new TokenStream(token.props[prop].val); this.parseScope(scope); - this.ts = curTS; + } + this.ts = curTS; // it's an object literal.. // the values could be replaced.. -- 2.39.2