commit 3d725141b627ec20af89cb29df82f655179981b3
parent 33de40ad9527efaf712c609dc9c6a7e89acb5bb4
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 25 Jun 2008 01:07:35 +0000
Don't put quotes around numbers in varDump() (used in debug())
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js
@@ -610,6 +610,9 @@ var Zotero = new function(){
if (typeof value == 'function'){
dumped_text += level_padding + "'" + item + "' => function(...){...} \n";
}
+ else if (typeof value == 'number') {
+ dumped_text += level_padding + "'" + item + "' => " + value + "\n";
+ }
else {
dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
}