From aff73bfba1fbc30a046ad5b7df65ed862bc84767 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 14 Oct 2013 09:21:58 -0700 Subject: [PATCH] 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 Signed-off-by: Dan Wells --- Open-ILS/xul/staff_client/chrome/content/main/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 37d92aa243..4d923c2c4e 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -1784,7 +1784,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)); } -- 2.11.0