JSDOC/Packer.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 18 Aug 2011 08:57:33 +0000 (16:57 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 18 Aug 2011 08:57:33 +0000 (16:57 +0800)
JSDOC/Packer.js

index 61546d4..a4ec80e 100644 (file)
@@ -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;