X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FCompositeElement.js;h=aca025555c4f94dd015f926547e5883c155343a2;hb=75cbc4ce04c9c01ac47671cb01320ce699128d00;hp=dd5a6e1a0fdddfff4d563db9cfd1c7a1839511c5;hpb=b101fd63d94642cf1b4e0a3a29e5e9bdf8becc7a;p=roojs1 diff --git a/Roo/CompositeElement.js b/Roo/CompositeElement.js index dd5a6e1a0f..aca025555c 100644 --- a/Roo/CompositeElement.js +++ b/Roo/CompositeElement.js @@ -37,7 +37,9 @@ Roo.CompositeElement = function(els){ Roo.CompositeElement.prototype = { isComposite: true, addElements : function(els){ - if(!els) return this; + if(!els) { + return this; + } if(typeof els == "string"){ els = Roo.Element.selectorFunction(els); } @@ -70,7 +72,6 @@ Roo.CompositeElement.prototype = { var els = []; inverse = inverse || false; this.each(function(el){ - var match = inverse ? !el.is(selector) : el.is(selector); if(match){ els[els.length] = el.dom;