From: Galen Charlton Date: Mon, 14 Oct 2013 16:21:58 +0000 (-0700) Subject: LP#1086458: remove unecessary anonymous hashes when calling xulG.set_tab() X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Frel_2_3_11;p=evergreen%2Fpines.git LP#1086458: remove unecessary anonymous hashes when calling xulG.set_tab() This follows up on observations made by Steven Chan that suggests that even the act of creating an anonymous hash and passing it to a global function can cause (I assume) JavaScript execution contexts to be leaked. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index 402b13f559..3f800ded9b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -1687,7 +1687,7 @@ main.menu.prototype = { 'refresh_checkout', function() { try { - obj.set_tab(obj.url_prefix('XUL_PATRON_BARCODE_ENTRY'),{},{}); + obj.set_tab(obj.url_prefix('XUL_PATRON_BARCODE_ENTRY')); } catch(E) { obj.error.sdump('D_ERROR','tab_refresh_checkout_handler: ' + js2JSON(E)); }