From: Edward Date: Thu, 4 Apr 2019 04:18:15 +0000 (+0800) Subject: roojs-ui.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=cef06f3a3d388c61ae522e855e079bb32886fecf roojs-ui.js roojs-ui-debug.js roojs-all.js roojs-debug.js --- diff --git a/roojs-all.js b/roojs-all.js index f6e9d9d456..eda6f5262e 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -963,8 +963,8 @@ return A;},getNodeById:function(id){return this.nodeHash[id];},registerNode:func }}return -1;};}this.parentNode=null;this.firstChild=null;this.lastChild=null;this.previousSibling=null;this.nextSibling=null;this.addEvents({"append":true,"remove":true,"move":true,"insert":true,"beforeappend":true,"beforeremove":true,"beforemove":true,"beforeinsert":true} );this.listeners=this.attributes.listeners;Roo.data.Node.superclass.constructor.call(this);};Roo.extend(Roo.data.Node,Roo.util.Observable,{fireEvent:function(A){if(Roo.data.Node.superclass.fireEvent.apply(this,arguments)===false){return false;}var ot=this.getOwnerTree(); if(ot){if(ot.proxyNodeEvent.apply(ot,arguments)===false){return false;}}return true;},isLeaf:function(){return this.leaf===true;},setFirstChild:function(A){this.firstChild=A;},setLastChild:function(A){this.lastChild=A;},isLast:function(){return (!this.parentNode?true:this.parentNode.lastChild==this); -},isFirst:function(){return (!this.parentNode?true:this.parentNode.firstChild==this);},hasChildNodes:function(){return !this.isLeaf()&&this.childNodes.length>0;},appendChild:function(A){Roo.log('tree.js appendChild');Roo.log(A);var B=false;if(A instanceof Array){B=A; -}else if(arguments.length>1){B=arguments;}if(B){for(var i=0,C=B.length;i0;},appendChild:function(A){var B=false;if(A instanceof Array){B=A;}else if(arguments.length>1){B=arguments; +}if(B){for(var i=0,C=B.length;i0;},appendChild:function(A){Roo.log('tree.js appendChild');Roo.log(A);var B=false;if(A instanceof Array){B=A; -}else if(arguments.length>1){B=arguments;}if(B){for(var i=0,C=B.length;i0;},appendChild:function(A){var B=false;if(A instanceof Array){B=A;}else if(arguments.length>1){B=arguments; +}if(B){for(var i=0,C=B.length;i