From bd6d133d6d7d840915ba0347f0ecaa965768a76c Mon Sep 17 00:00:00 2001 From: berick Date: Thu, 26 May 2011 15:17:20 -0400 Subject: [PATCH] Protect against empty kwargs hash Signed-off-by: berick --- Open-ILS/web/js/dojo/openils/AuthorityControlSet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/web/js/dojo/openils/AuthorityControlSet.js b/Open-ILS/web/js/dojo/openils/AuthorityControlSet.js index a1e7186ed7..46ad3946ca 100644 --- a/Open-ILS/web/js/dojo/openils/AuthorityControlSet.js +++ b/Open-ILS/web/js/dojo/openils/AuthorityControlSet.js @@ -28,6 +28,8 @@ if(!dojo._hasResource["openils.AuthorityControlSet"]) { constructor : function(kwargs) { + kwargs = kwargs || {}; + if (!openils.AuthorityControlSet._remote_loaded) { // TODO -- push the raw tree into the oils cache for later reuse -- 2.11.0