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=e53ff255a1a8a91a5257e4c302a9966966f4b95c;p=evergreen%2Fequinox.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