projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0cf4360
)
JSDOC/Packer.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 21 Jul 2010 11:57:15 +0000
(19:57 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 21 Jul 2010 11:57:15 +0000
(19:57 +0800)
JSDOC/Packer.js
patch
|
blob
|
history
diff --git
a/JSDOC/Packer.js
b/JSDOC/Packer.js
index
dde2085
..
e4c3e8b
100644
(file)
--- a/
JSDOC/Packer.js
+++ b/
JSDOC/Packer.js
@@
-71,9
+71,12
@@
Packer = function(cfg)
{
XObject.extend(this, 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) {
}
if (!this.files) {
@@
-126,9
+129,9
@@
Packer.prototype = {
out : '', // if no target is specified - then this will contain the result
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) {
var _this = this;
lines.forEach(function(f) {