From: Alan Knowles Date: Thu, 18 Aug 2011 08:57:33 +0000 (+0800) Subject: JSDOC/Packer.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=42e251e2e4d8488c632e55a6627908bb5ea0423f JSDOC/Packer.js --- diff --git a/JSDOC/Packer.js b/JSDOC/Packer.js index 61546d4..a4ec80e 100644 --- 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)) { @@ -292,6 +292,7 @@ Packer.prototype = { // if we are translating, write the translations strings at the top // of the file.. + if (this.translateJSON) { @@ -302,9 +303,7 @@ Packer.prototype = { } else { this.out += out; } - - - + 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"); + + if (out.length) { + File.write(minfile, str); + } + return out;