From: phasefx Date: Sat, 31 Jan 2009 21:31:00 +0000 (+0000) Subject: can't use js2JSON when we're pushing around functions, windows, etc. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=07bb24295e18797ed247e14fa65d1555161b74fd;p=Evergreen.git can't use js2JSON when we're pushing around functions, windows, etc. git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12024 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.js b/Open-ILS/xul/staff_client/chrome/content/util/browser.js index 35af4e6593..bf939d1d93 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/browser.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.js @@ -122,7 +122,7 @@ util.browser.prototype = { cw.xulG.set_tab = window.xulG.set_tab; cw.xulG.new_tab = window.xulG.new_tab; cw.xulG.url_prefix = window.xulG.url_prefix; - try { s += ('******** cw = ' + cw + ' cw.xulG = ' + js2JSON(cw.xulG) + '\n'); } catch(E) { s+=E + '\n'; } + try { s += ('******** cw = ' + cw + ' cw.xulG = ' + (cw.xulG) + '\n'); } catch(E) { s+=E + '\n'; } obj.error.sdump('D_BROWSER',s); } catch(E) { this.error.sdump('D_ERROR','util.browser.push_variables: ' + E + '\n'); @@ -250,7 +250,7 @@ util.browser.prototype = { } //obj.error.sdump('D_BROWSER',s); } catch(E) { - obj.error.sdump('D_ERROR','util.browser.progresslistener.onstatechange: ' + js2JSON(E)); + obj.error.sdump('D_ERROR','util.browser.progresslistener.onstatechange: ' + (E)); } } }