From e1a2651a993ecf945029787d5794929e7cfa64f9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 7 Feb 2014 15:33:11 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 79244b049d..c6bc872883 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -221,12 +221,9 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { initEvents: function() { // Roo.log('init events?'); // Roo.log(this.el.dom); - this.el.select('a',true).on('click', - function(e) { - this.fireEvent('click', this); - }, - this - ); + this.el.select('a',true).relayEvent('click', this); + this.el.select('button',true).relayEvent('click', this); + } }); -- 2.39.2