From d1b003e3498ec29e929d0643d85b36c61fdd49c0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 27 Jul 2010 13:06:11 +0800 Subject: [PATCH] JSDOC/Packer.js --- JSDOC/Packer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JSDOC/Packer.js b/JSDOC/Packer.js index d79a225..a89722f 100644 --- a/JSDOC/Packer.js +++ b/JSDOC/Packer.js @@ -443,10 +443,10 @@ Packer.prototype = { File.write(transmd5, ''); for(v in map) { - File.append(transfile, l + "\n\t \"" + v + '" : "' + v + '"'); + File.append(transfile, l + "\n\t" + JSON.stringify(v) + " : " + JSON.stringify(v)); l = ','; // strings are raw... - as the where encoded to start with!!! - File.append(transmd5, '_T["' + this.md5(ffn + '-' + v) + '"]="'+v+"\";\n"); + File.append(transmd5, '_T["' + this.md5(ffn + '-' + v) + '"]='+JSON.stringify(v)+";\n"); } File.append(transfile, "\n},"); // always one trailing.. -- 2.39.2