examples/bootstrap/modal.js
[roojs1] / examples / bootstrap / modal.js
index f4142fb..54bfaa5 100644 (file)
@@ -34,7 +34,7 @@ Roo.apply(Roo.example.modal, {
      
         var _this = this;
             
-        return {
+        this.dialog = Roo.factory({
             xtype: 'Modal',
             xns: Roo.bootstrap,
             title : "Login",
@@ -88,6 +88,6 @@ Roo.apply(Roo.example.modal, {
                     ]
                 }
             ]
-        };
+        });
     }
 });
\ No newline at end of file