From 42e251e2e4d8488c632e55a6627908bb5ea0423f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 18 Aug 2011 16:57:33 +0800 Subject: [PATCH] JSDOC/Packer.js --- JSDOC/Packer.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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; -- 2.39.2