X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FPacker.js;h=a4ec80e12df9517a055fb6eb689f0c8082312aba;hb=42e251e2e4d8488c632e55a6627908bb5ea0423f;hp=61546d45785c668f7be01f41045c79f788da4cc5;hpb=15cc68e7310b9f592d6f03b968ce2b2e6424a942;p=gnome.introspection-doc-generator 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;