examples/dialog/hello.js
authorAlan Knowles <alan@akkbhome.com>
Sun, 12 Sep 2010 07:22:33 +0000 (15:22 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 12 Sep 2010 07:22:33 +0000 (15:22 +0800)
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