X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6:/src/ext-core/src/core/CompositeElementLite.js..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/core/src/dom/CompositeElementLite.js diff --git a/src/ext-core/src/core/CompositeElementLite.js b/src/core/src/dom/CompositeElementLite.js similarity index 84% rename from src/ext-core/src/core/CompositeElementLite.js rename to src/core/src/dom/CompositeElementLite.js index a8cd3ffb..039a42db 100644 --- a/src/ext-core/src/core/CompositeElementLite.js +++ b/src/core/src/dom/CompositeElementLite.js @@ -1,15 +1,9 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ /** * @class Ext.CompositeElementLite *

This class encapsulates a collection of DOM elements, providing methods to filter * members, or to perform collective actions upon the whole set.

- *

Although they are not listed, this class supports all of the methods of {@link Ext.Element} and - * {@link Ext.Fx}. The methods from these classes will be performed on all the elements in this collection.

+ *

Although they are not listed, this class supports all of the methods of {@link Ext.core.Element} and + * {@link Ext.fx.Anim}. The methods from these classes will be performed on all the elements in this collection.

* Example:

 var els = Ext.select("#some-el div.some-class");
 // or select directly from an existing element
@@ -20,7 +14,7 @@ els.setWidth(100); // all elements become 100 width
 els.hide(true); // all elements fade out and hide
 // or
 els.setWidth(100).hide(true);
-
+
*/ Ext.CompositeElementLite = function(els, root){ /** @@ -51,7 +45,7 @@ Ext.override(Ext.CompositeElementLite, { */ this.elements = []; this.add(els, root); - this.el = new Ext.Element.Flyweight(); + this.el = new Ext.core.Element.Flyweight(); }; Ext.CompositeElementLite.prototype = { @@ -90,7 +84,7 @@ Ext.CompositeElementLite.prototype = { return this; } if(typeof els == "string"){ - els = Ext.Element.selectorFunction(els, root); + els = Ext.core.Element.selectorFunction(els, root); }else if(els.isComposite){ els = els.elements; }else if(!Ext.isIterable(els)){ @@ -113,7 +107,7 @@ Ext.CompositeElementLite.prototype = { for(i = 0; i < len; i++) { e = els[i]; if(e){ - Ext.Element.prototype[fn].apply(me.getElement(e), args); + Ext.core.Element.prototype[fn].apply(me.getElement(e), args); } } return me; @@ -121,7 +115,7 @@ Ext.CompositeElementLite.prototype = { /** * Returns a flyweight Element of the dom element object at the specified index * @param {Number} index - * @return {Ext.Element} + * @return {Ext.core.Element} */ item : function(index){ var me = this, @@ -152,7 +146,7 @@ Ext.CompositeElementLite.prototype = { *

Calls the passed function for each element in this composite.

* @param {Function} fn The function to call. The function is passed the following parameters: