examples/dialog/hello.js
[roojs1] / examples / dialog / hello.js
index dc44c36..efc139d 100644 (file)
@@ -87,8 +87,8 @@ var HelloWorld = {
 // using onDocumentReady instead of window.onload initializes the application\r
 // when the DOM is ready, without waiting for images and other resources to load\r
 Roo.onReady(function() {
-    var showBtn = Roo.get('show-dialog-btn');
-    showBtn.on('click',function () {
+    
+    Roo.get('show-dialog-btn').on('click',function () {
         HelloWorld.show({ _el : this});
     });
 });
\ No newline at end of file