From: Alan Knowles Date: Thu, 15 Jul 2010 08:59:34 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=2a675f4404cc62cbac76f436efdad426088ec3d8 JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 1f786e0..1b77312 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -633,9 +633,11 @@ ScopeParser.prototype = { if (token.props) { for (var prop in token.props) { - if (token.props[prop].val.data == 'function') { + if (token.props[prop].val[0].data == 'function') { // parse a function.. - this.parseFunctProp(token.props[prop]); + this.ts = new TokenStream(token.props[prop].val); + this.ts.nextTok(); + this.parseFunctionDeclaration(); continue; } // key value..