Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / src / core / core / CompositeElementLite.js
index e355bcc..1f55ec9 100644 (file)
@@ -1,6 +1,6 @@
 /*!
- * Ext JS Library 3.1.0
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.1.1
+ * Copyright(c) 2006-2010 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
  */
@@ -107,9 +107,10 @@ Ext.CompositeElementLite.prototype = {
         var me = this,\r
             els = me.elements,\r
             len = els.length, \r
-            e;\r
+            e, \r
+            i;\r
             \r
-        for(i = 0; i<len; i++) {\r
+        for(i = 0; i < len; i++) {\r
             e = els[i];\r
             if(e){\r
                 Ext.Element.prototype[fn].apply(me.getElement(e), args);\r
@@ -169,7 +170,7 @@ Ext.CompositeElementLite.prototype = {
             e = els[i];\r
             if(e){\r
                 e = this.getElement(e);\r
-                if(fn.call(scope || e, e, me, i)){\r
+                if(fn.call(scope || e, e, me, i) === false){\r
                     break;\r
                 }\r
             }\r