JSDOC/Packer.js
authoralan <alan@desktop.akbkhome.com>
Wed, 28 Apr 2010 05:35:51 +0000 (13:35 +0800)
committeralan <alan@desktop.akbkhome.com>
Wed, 28 Apr 2010 05:35:51 +0000 (13:35 +0800)
JSDOC/Packer.js

index 1de66f7..d04e630 100644 (file)
@@ -141,7 +141,11 @@ Packer.prototype = {
             }
             
             //println("ADD"+ f.replace(/\./g, '/'));
-            _this.files.push( f.replace(/\./g, '/').replace(/\s+/g,'')+'.js');
+            var add = f.replace(/\./g, '/').replace(/\s+/g,'')+'.js';
+            if (_this.files.indexOf(f) > -1) {
+                return;
+            }
+            _this.files.push( add );
             
         })
     },