JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 04:30:46 +0000 (12:30 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 04:30:46 +0000 (12:30 +0800)
JSDOC/ScopeParser.js

index 91ecdff..96cd824 100644 (file)
@@ -192,7 +192,7 @@ ScopeParser.prototype = {
     dumpToken: function (tok, scope, brace) {
         if (this.dumpLine == false) {
             this.dumpLine = {
-                str : '' +tok.data,
+                str : tok.data + ' '
                 scope : scope.length,
                 brace : brace
             }
@@ -200,7 +200,7 @@ ScopeParser.prototype = {
         }
         
         if (this.dumpLine.scope == scope.length && this.dumpLine.brace == brace) {
-            this.dumpLine.str += ' ' + tok.data;
+            this.dumpLine.str +=  tok.data + ' ';
             if (this.dumpLine.str.length > 80 || tok.data ==';') {
                 
                 print(
@@ -217,7 +217,7 @@ ScopeParser.prototype = {
         
         
         this.dumpLine = {
-            str : '' +tok.data,
+            str : tok.data + ' ',
             scope : scope.length,
             brace : brace
         }