JSDOC/Walker2.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 28 Jun 2010 08:58:00 +0000 (16:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 28 Jun 2010 08:58:00 +0000 (16:58 +0800)
JSDOC/Walker2.js

index 329440f..0bdaf7a 100644 (file)
@@ -513,9 +513,9 @@ Walker2 = XObject.define(
                         //$private$
                         
                     if (
-                            (this.ts.lookT(-1).tokN == Script.TOKnew) && 
-                            (this.ts.lookT(-2).tokN == Script.TOKassign)
-                            (this.ts.lookT(-3).tokN == Script.TOKidentifier)
+                            (this.ts.lookT(-1).name == 'NEW') && 
+                            (this.ts.lookT(-2).data == '=')
+                            (this.ts.lookT(-3).type = 'FUNCTION')
                         ) {
                         //scopeName = this.ts.look(-3).data;
                         this.ts.balanceN(Script.TOKlparen);