From 15cc68e7310b9f592d6f03b968ce2b2e6424a942 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 18 Aug 2011 16:49:40 +0800 Subject: [PATCH] JSDOC/Packer.js --- JSDOC/Packer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/JSDOC/Packer.js b/JSDOC/Packer.js index 48df366..61546d4 100644 --- a/JSDOC/Packer.js +++ b/JSDOC/Packer.js @@ -280,13 +280,18 @@ Packer.prototype = { } var str = File.read(file); var str = this.pack(str, file, minfile); + + if (str.length) { File.write(minfile, str); } - } + } + + // if we are translating, write the translations strings at the top + // of the file.. if (this.translateJSON) { -- 2.39.2