Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2014 07:36:31 +0000 (15:36 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2014 07:36:31 +0000 (15:36 +0800)
Roo/bootstrap/Button.js

index 62acf31..a50fba6 100644 (file)
@@ -221,8 +221,8 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     initEvents: function() {
        // Roo.log('init events?');
        // Roo.log(this.el.dom);
-       this.el.select('a',true).relayEvent('click', this);
-       this.el.select('button',true).relayEvent('click', this);
+       this.el.select('a',true).on('click', this.onClick, this);
+       this.el.select('button',true).on('click', this.onClick, this);
         
     },
     onClick : function(e)