builder.html.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 26 May 2010 09:38:29 +0000 (17:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 26 May 2010 09:38:29 +0000 (17:38 +0800)
builder.html.js

index 837e80f..183711e 100644 (file)
@@ -221,7 +221,7 @@ Builder  = {
              
         }
         if (cfg.xtype) {
-            if (typeof(cfg.xns[cfg.xtype]) == 'undefined') {
+            if (!cfg.xns || typeof(cfg.xns[cfg.xtype]) == 'undefined') {
                 throw "Invalid Xtype " + this.xtreepath;
             }
         }