JSDOC/ScopeNamer.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 8 Nov 2011 14:41:14 +0000 (22:41 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 8 Nov 2011 14:41:14 +0000 (22:41 +0800)
JSDOC/ScopeNamer.js

index 24ee318..4b8b32d 100644 (file)
@@ -259,7 +259,7 @@ ScopeNamer = XObject.define(
                     // function a() { .... } << scope is a  $this$={a}
                     if (this.lookTok(1).is('NAME')) {
                         name = this.lookTok(2).data;
-                        this.walkFunctionDef(scope, name, this.lookTok(2).args, this.lookTok(3).items, this.token);
+                        this.walkFunctionDef(scope, name, this.lookTok(2).args, this.lookTok(3).items, token);
                         continue;
                     }
                      //a = function() { } << scope might be a  $this$={a}