From 6fc9cbeada7505a49683ade1d0b3c72fd7d97d2e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 8 Jan 2021 12:53:26 +0800 Subject: [PATCH] sync --- Roo/bootstrap/breadcrumb/Item.js | 2 +- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/breadcrumb/Item.js b/Roo/bootstrap/breadcrumb/Item.js index 25291f3080..550b693fd4 100644 --- a/Roo/bootstrap/breadcrumb/Item.js +++ b/Roo/bootstrap/breadcrumb/Item.js @@ -64,7 +64,7 @@ Roo.extend(Roo.bootstrap.breadcrumb.Item, Roo.bootstrap.Component, { initEvents: function() { if (this.href) { - this.el.select('a', true).first().onClick(this.onClick, this) + this.el.select('a', true).first().on('click',this.onClick, this) } }, diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 0766025c1e..f82cb193ed 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -6725,7 +6725,7 @@ Roo.extend(Roo.bootstrap.breadcrumb.Item, Roo.bootstrap.Component, { initEvents: function() { if (this.href) { - this.el.select('a', true).first().onClick(this.onClick, this) + this.el.select('a', true).first().on('click',this.onClick, this) } }, diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 65e980d77b..68e04ad6c5 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -277,7 +277,7 @@ Roo.namespace('Roo.bootstrap.breadcrumb');Roo.bootstrap.breadcrumb.Nav=function( ]};return A;},initEvents:function(){this.olEl=this.el.select('ol',true).first();},getChildContainer:function(){return this.olEl;}}); // Roo/bootstrap/breadcrumb/Item.js Roo.bootstrap.breadcrumb.Item=function(A){Roo.bootstrap.breadcrumb.Item.superclass.constructor.call(this,A);this.addEvents({"click":true});};Roo.extend(Roo.bootstrap.breadcrumb.Item,Roo.bootstrap.Component,{href:false,html:'',getAutoCreate:function(){var A={tag:'li',cls:'breadcrumb-item'+(this.active?' active':'')} -;if(this.href!==false){A.cn=[{tag:'a',href:this.href,html:this.html}];}else{A.html=this.html;}return A;},initEvents:function(){if(this.href){this.el.select('a',true).first().onClick(this.onClick,this)}},onClick:function(e){e.preventDefault();this.fireEvent('click',this,e); +;if(this.href!==false){A.cn=[{tag:'a',href:this.href,html:this.html}];}else{A.html=this.html;}return A;},initEvents:function(){if(this.href){this.el.select('a',true).first().on('click',this.onClick,this)}},onClick:function(e){e.preventDefault();this.fireEvent('click',this,e); }}); // Roo/bootstrap/Row.js Roo.bootstrap.Row=function(A){Roo.bootstrap.Row.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.Row,Roo.bootstrap.Component,{getAutoCreate:function(){return {cls:'row clearfix'};}}); -- 2.39.2