Builder/Provider/File/Roo.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 7 Jun 2010 08:13:19 +0000 (16:13 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 7 Jun 2010 08:13:19 +0000 (16:13 +0800)
Builder/Provider/File/Roo.js

index 2f4f6f4..cf79bbf 100755 (executable)
@@ -253,6 +253,9 @@ Roo = XObject.define(
             // we have 2 types = dialogs and components
             // 
             var top = this.guessName(this.items[0]);
+            if (!top) {
+                return false;
+            }
             if (top.match(/Dialog/)) {
                 return this.toSourceDialog();
             }