From: berick Date: Thu, 26 May 2011 19:17:20 +0000 (-0400) Subject: Protect against empty kwargs hash X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bd6d133d6d7d840915ba0347f0ecaa965768a76c;p=working%2FEvergreen.git Protect against empty kwargs hash Signed-off-by: berick --- 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