From: Alan Knowles Date: Wed, 26 May 2010 09:38:29 +0000 (+0800) Subject: builder.html.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=d00f9b55efc477bca7cecb05a93112f5afd47519 builder.html.js --- diff --git a/builder.html.js b/builder.html.js index 837e80f05..183711e12 100644 --- a/builder.html.js +++ b/builder.html.js @@ -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; } }