Revert "Call UIButton click handler out of context"
authorSergey I. Sharybin <g.ulairi@gmail.com>
Sat, 18 Dec 2010 11:34:45 +0000 (16:34 +0500)
committerSergey I. Sharybin <g.ulairi@gmail.com>
Sat, 18 Dec 2010 11:34:45 +0000 (16:34 +0500)
This reverts commit 530c21a5456bbffe98a869bbd51f1ba996601e6f.

"Browse" button of UIFileEntry was brokwen by this commit

src/ui/widgets/UIButton.js

index 03a4d33..c7e7c9b 100644 (file)
@@ -67,10 +67,7 @@ function _UIButton ()
 
       if (this.sensitive && this.onClick)
         {
-          window.setTimeout (function (self, event) { return function () {
-                self.onClick (event);
-              }
-            } (this, event), 10);
+          this.onClick (event);
         }
     };