Roo/CompositeElement.js
authorEdward <edward@roojs.com>
Mon, 19 May 2014 06:36:19 +0000 (14:36 +0800)
committerEdward <edward@roojs.com>
Mon, 19 May 2014 06:36:19 +0000 (14:36 +0800)
Roo/CompositeElement.js

index 3f95ad9..8a59f7f 100644 (file)
@@ -71,7 +71,8 @@ Roo.CompositeElement.prototype = {
         inverse = inverse || false;
         this.each(function(el){
             var match  = el.is(selector) ;
-            if(match && !inverse || !match && inverse){
+            match = inverse ? !match : match;
+            if(match){
                 els[els.length] = el.dom;
             }
         });