From 29b29eb5f410dadbc108bf39dabc7493ab906148 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 21 Jul 2010 19:57:15 +0800 Subject: [PATCH] JSDOC/Packer.js --- JSDOC/Packer.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/JSDOC/Packer.js b/JSDOC/Packer.js index dde2085..e4c3e8b 100644 --- a/JSDOC/Packer.js +++ b/JSDOC/Packer.js @@ -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) { -- 2.39.2