From: Alan Knowles Date: Thu, 15 Jul 2010 08:33:12 +0000 (+0800) Subject: JSDOC/Scope.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=50f6f10a6c30a6be9354a0414ae6682a5401d2ae;ds=sidebyside JSDOC/Scope.js --- diff --git a/JSDOC/Scope.js b/JSDOC/Scope.js index b6539b5..4845435 100644 --- a/JSDOC/Scope.js +++ b/JSDOC/Scope.js @@ -73,7 +73,12 @@ Scope.prototype = { return this.identifiers[symbol]; }, getIdentifier : function(symbol) { - return (typeof(this.identifiers[symbol])== 'undefined') ? false : this.identifiers[symbol]; + if (typeof(this.identifiers[symbol])== 'undefined') { + print("SYMBOL NOT FOUND?" + symbol); + return false; + } + + return this.identifiers[symbol]; }, addHint : function(varName, varType) {