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:
15cc68e
)
JSDOC/Packer.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 18 Aug 2011 08:57:33 +0000
(16:57 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 18 Aug 2011 08:57:33 +0000
(16:57 +0800)
JSDOC/Packer.js
patch
|
blob
|
history
diff --git
a/JSDOC/Packer.js
b/JSDOC/Packer.js
index
61546d4
..
a4ec80e
100644
(file)
--- a/
JSDOC/Packer.js
+++ b/
JSDOC/Packer.js
@@
-272,7
+272,7
@@
Packer.prototype = {
}
}
}
}
-
+
print("COMPRESSING ");
//var codeComp = pack(str, 10, 0, 0);
if (File.exists(minfile)) {
print("COMPRESSING ");
//var codeComp = pack(str, 10, 0, 0);
if (File.exists(minfile)) {
@@
-292,6
+292,7
@@
Packer.prototype = {
// if we are translating, write the translations strings at the top
// of the file..
// if we are translating, write the translations strings at the top
// of the file..
+
if (this.translateJSON) {
if (this.translateJSON) {
@@
-302,9
+303,7
@@
Packer.prototype = {
} else {
this.out += out;
}
} else {
this.out += out;
}
-
-
-
+
File.write(this.translateJSON, "");
for(var i=0; i < this.files.length; i++) {
var file = this.files[i];
File.write(this.translateJSON, "");
for(var i=0; i < this.files.length; i++) {
var file = this.files[i];
@@
-426,6
+425,11
@@
Packer.prototype = {
this.timerPrint("Compressed");
this.timerPrint("Compressed");
+
+ if (out.length) {
+ File.write(minfile, str);
+ }
+
return out;
return out;