// we have 2 types = dialogs and components
//
var top = this.guessName(this.items[0]);
+
if (!top) {
return false;
}
- if (top.match(/Dialog/)) {
+ if (top.match(/Dialog/) || top.match(/Modal/)) {
return this.toSourceDialog();
}
return this.toSourceLayout();