Protect against empty kwargs hash
authorberick <berick@esilibrary.com>
Thu, 26 May 2011 19:17:20 +0000 (15:17 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 11 Jul 2011 13:07:17 +0000 (09:07 -0400)
Signed-off-by: berick <berick@esilibrary.com>
Open-ILS/web/js/dojo/openils/AuthorityControlSet.js

index a1e7186..46ad394 100644 (file)
@@ -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