From 233d45f87463c65ae7c43c2bdf32036973464726 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 23 Jan 2019 17:59:39 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js --- roojs-bootstrap-debug.js | 4 ++-- roojs-bootstrap.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index bcb5ad72e3..0508448cb2 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -6,13 +6,13 @@ Roo.bootstrap.version = ( function() { var ret=3; - Roo.each(document.styleSheets[0], function(s) { + Roo.each(document.styleSheets, function(s) { if (s.href.match(/css-bootstrap4/)) { ret=4; } }); return ret; -})();/* +})(); /* * - LGPL * * base class for bootstrap elements. diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 4c536f9409..c52d772245 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1,5 +1,5 @@ // Roo/bootstrap/version.js -Roo.bootstrap.version=(function(){var A=3;Roo.each(document.styleSheets[0],function(s){if(s.href.match(/css-bootstrap4/)){A=4;}});return A;})(); +Roo.bootstrap.version=(function(){var A=3;Roo.each(document.styleSheets,function(s){if(s.href.match(/css-bootstrap4/)){A=4;}});return A;})(); // Roo/bootstrap/Component.js Roo.bootstrap=Roo.bootstrap||{};Roo.bootstrap.Component=function(A){Roo.bootstrap.Component.superclass.constructor.call(this,A);this.addEvents({"childrenrendered":true});};Roo.extend(Roo.bootstrap.Component,Roo.BoxComponent,{allowDomMove:false,cls:false,style:false,autoCreate:false,tooltip:null,initEvents:function(){} ,xattr:false,parentId:false,can_build_overlaid:true,container_method:false,dataId:false,name:false,parent:function(){return Roo.ComponentMgr.get(this.parentId)},onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A);if(this.el){if(this.el.attr('xtype')){this.el.attr('xtypex',this.el.attr('xtype')); -- 2.39.2