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