From: Alan Knowles Date: Wed, 21 Jul 2010 11:57:15 +0000 (+0800) Subject: JSDOC/Packer.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=29b29eb5f410dadbc108bf39dabc7493ab906148 JSDOC/Packer.js --- 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) {