From 3d725141b627ec20af89cb29df82f655179981b3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 25 Jun 2008 01:07:35 +0000 Subject: [PATCH] Don't put quotes around numbers in varDump() (used in debug()) --- chrome/content/zotero/xpcom/zotero.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index f5578a3b8..fba547ca3 100644 --- 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"; }