JSDOC/Packer.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 21 Jul 2010 11:57:15 +0000 (19:57 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 21 Jul 2010 11:57:15 +0000 (19:57 +0800)
JSDOC/Packer.js

index dde2085..e4c3e8b 100644 (file)
@@ -71,9 +71,12 @@ Packer = function(cfg)
 {
     
     XObject.extend(this, cfg);
-    
-    if (this.srcfile) {
-        this.loadSourceFile();
+    var _this = this;
+    if (this.srcfile.length) {
+        this.srcfile.forEach(function(f) {
+            _this.loadSourceFile(f);
+        });
+        
     }
     
     if (!this.files) {
@@ -126,9 +129,9 @@ Packer.prototype = {
     out : '', // if no target is specified - then this will contain the result
     
     
-    loadSourceFile : function()
+    loadSourceFile : function(srcfile)
     {
-        var lines = File.read(this.srcfile).split("\n");
+        var lines = File.read(srcfile).split("\n");
         var _this = this;
         lines.forEach(function(f) {