From d00f9b55efc477bca7cecb05a93112f5afd47519 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 26 May 2010 17:38:29 +0800 Subject: [PATCH] builder.html.js --- builder.html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.2