From 6609cdea8dd10dbba0b91be97b84b4ee7c508560 Mon Sep 17 00:00:00 2001 From: leon Date: Fri, 17 Jun 2022 13:16:02 +0800 Subject: [PATCH] roojs-core.js roojs-core-debug.js roojs-ui.js roojs-ui-debug.js roojs-all.js roojs-debug.js --- roojs-all.js | 2 +- roojs-core-debug.js | 2 ++ roojs-core.js | 2 +- roojs-debug.js | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roojs-all.js b/roojs-all.js index 69e62f1c28..9037cd3c73 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -690,7 +690,7 @@ Roo.Component=function(A){console.log("COMPONENT CONSTRUCTOR");A=A||{};if(A.tagN Roo.extend(Roo.Component,Roo.util.Observable,{hidden:false,disabled:false,rendered:false,disabledClass:"x-item-disabled",allowDomMove:true,hideMode:'display',ctype:"Roo.Component",actionMode:"el",getActionEl:function(){return this[this.actionMode];},initComponent:Roo.emptyFn,render:function(A,B){if(this.rendered){return this; }if(this.fireEvent("beforerender",this)===false){return false;}if(!A&&this.el){this.el=Roo.get(this.el);A=this.el.dom.parentNode;this.allowDomMove=false;}this.container=Roo.get(A);this.rendered=true;if(B!==undefined){if(typeof B=='number'){B=this.container.dom.childNodes[B]; }else{B=Roo.getDom(B);}}this.onRender(this.container,B||null);if(this.cls){this.el.addClass(this.cls);delete this.cls;}if(this.style){this.el.applyStyles(this.style);delete this.style;}this.fireEvent("render",this);this.afterRender(this.container);if(this.hidden){this.hide(); -}if(this.disabled){this.disable();}return this;},onRender:function(ct,A){if(this.el){this.el=Roo.get(this.el);if(this.allowDomMove!==false){ct.dom.insertBefore(this.el.dom,A);}}},getAutoCreate:function(){var A=typeof this.autoCreate=="object"?this.autoCreate:Roo.apply({} +}if(this.disabled){this.disable();}return this;},onRender:function(ct,A){console.log("THIS EL");console.log(this.el);if(this.el){this.el=Roo.get(this.el);if(this.allowDomMove!==false){ct.dom.insertBefore(this.el.dom,A);}}},getAutoCreate:function(){var A=typeof this.autoCreate=="object"?this.autoCreate:Roo.apply({} ,this.defaultAutoCreate);if(this.id&&!A.id){A.id=this.id;}return A;},afterRender:Roo.emptyFn,destroy:function(){if(this.fireEvent("beforedestroy",this)!==false){this.purgeListeners();this.beforeDestroy();if(this.rendered){this.el.removeAllListeners();this.el.remove(); if(this.actionMode=="container"){this.container.remove();}}this.onDestroy();Roo.ComponentMgr.unregister(this);this.fireEvent("destroy",this);}},beforeDestroy:function(){},onDestroy:function(){},getEl:function(){return this.el;},getId:function(){return this.id; },focus:function(A){if(this.rendered){this.el.focus();if(A===true){this.el.dom.select();}}return this;},blur:function(){if(this.rendered){this.el.blur();}return this;},disable:function(){if(this.rendered){this.onDisable();}this.disabled=true;this.fireEvent("disable",this); diff --git a/roojs-core-debug.js b/roojs-core-debug.js index 6851d2d406..03fd340d74 100644 --- a/roojs-core-debug.js +++ b/roojs-core-debug.js @@ -17053,6 +17053,8 @@ Roo.extend(Roo.Component, Roo.util.Observable, { /** @private */ // default function is not really useful onRender : function(ct, position){ + console.log("THIS EL"); + console.log(this.el); if(this.el){ this.el = Roo.get(this.el); if(this.allowDomMove !== false){ diff --git a/roojs-core.js b/roojs-core.js index 2fa6bec9e7..efa08db16f 100644 --- a/roojs-core.js +++ b/roojs-core.js @@ -690,7 +690,7 @@ Roo.Component=function(A){console.log("COMPONENT CONSTRUCTOR");A=A||{};if(A.tagN Roo.extend(Roo.Component,Roo.util.Observable,{hidden:false,disabled:false,rendered:false,disabledClass:"x-item-disabled",allowDomMove:true,hideMode:'display',ctype:"Roo.Component",actionMode:"el",getActionEl:function(){return this[this.actionMode];},initComponent:Roo.emptyFn,render:function(A,B){if(this.rendered){return this; }if(this.fireEvent("beforerender",this)===false){return false;}if(!A&&this.el){this.el=Roo.get(this.el);A=this.el.dom.parentNode;this.allowDomMove=false;}this.container=Roo.get(A);this.rendered=true;if(B!==undefined){if(typeof B=='number'){B=this.container.dom.childNodes[B]; }else{B=Roo.getDom(B);}}this.onRender(this.container,B||null);if(this.cls){this.el.addClass(this.cls);delete this.cls;}if(this.style){this.el.applyStyles(this.style);delete this.style;}this.fireEvent("render",this);this.afterRender(this.container);if(this.hidden){this.hide(); -}if(this.disabled){this.disable();}return this;},onRender:function(ct,A){if(this.el){this.el=Roo.get(this.el);if(this.allowDomMove!==false){ct.dom.insertBefore(this.el.dom,A);}}},getAutoCreate:function(){var A=typeof this.autoCreate=="object"?this.autoCreate:Roo.apply({} +}if(this.disabled){this.disable();}return this;},onRender:function(ct,A){console.log("THIS EL");console.log(this.el);if(this.el){this.el=Roo.get(this.el);if(this.allowDomMove!==false){ct.dom.insertBefore(this.el.dom,A);}}},getAutoCreate:function(){var A=typeof this.autoCreate=="object"?this.autoCreate:Roo.apply({} ,this.defaultAutoCreate);if(this.id&&!A.id){A.id=this.id;}return A;},afterRender:Roo.emptyFn,destroy:function(){if(this.fireEvent("beforedestroy",this)!==false){this.purgeListeners();this.beforeDestroy();if(this.rendered){this.el.removeAllListeners();this.el.remove(); if(this.actionMode=="container"){this.container.remove();}}this.onDestroy();Roo.ComponentMgr.unregister(this);this.fireEvent("destroy",this);}},beforeDestroy:function(){},onDestroy:function(){},getEl:function(){return this.el;},getId:function(){return this.id; },focus:function(A){if(this.rendered){this.el.focus();if(A===true){this.el.dom.select();}}return this;},blur:function(){if(this.rendered){this.el.blur();}return this;},disable:function(){if(this.rendered){this.onDisable();}this.disabled=true;this.fireEvent("disable",this); diff --git a/roojs-debug.js b/roojs-debug.js index afeb13171e..de1b088591 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -17053,6 +17053,8 @@ Roo.extend(Roo.Component, Roo.util.Observable, { /** @private */ // default function is not really useful onRender : function(ct, position){ + console.log("THIS EL"); + console.log(this.el); if(this.el){ this.el = Roo.get(this.el); if(this.allowDomMove !== false){ -- 2.39.2