X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..HEAD:/docs/source/CompositeElementLite-more.html diff --git a/docs/source/CompositeElementLite-more.html b/docs/source/CompositeElementLite-more.html index 874df883..657f5d0d 100644 --- a/docs/source/CompositeElementLite-more.html +++ b/docs/source/CompositeElementLite-more.html @@ -1,26 +1,29 @@ + - + The source code - - + + + + - -
/*!
- * Ext JS Library 3.3.1
- * Copyright(c) 2006-2010 Sencha Inc.
- * licensing@sencha.com
- * http://www.sencha.com/license
- */
-/**
- * @class Ext.CompositeElementLite
+
+  
/**
+ * @class Ext.CompositeElementLite
  */
 Ext.apply(Ext.CompositeElementLite.prototype, {
     addElements : function(els, root){
         if(!els){
             return this;
         }
-        if(typeof els == "string"){
+        if(typeof els == "string"){
             els = Ext.Element.selectorFunction(els, root);
         }
         var yels = this.elements;
@@ -30,37 +33,37 @@ Ext.apply(Ext.CompositeElementLite.prototype, {
         return this;
     },
 
-    
/** - * Returns the first Element + /** + * Returns the first Element * @return {Ext.Element} */ first : function(){ return this.item(0); }, -
/** - * Returns the last Element + /** + * Returns the last Element * @return {Ext.Element} */ last : function(){ return this.item(this.getCount()-1); }, -
/** - * Returns true if this composite contains the passed element - * @param el {Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. + /** + * Returns true if this composite contains the passed element + * @param el {String/HTMLElement/Ext.Element/Number} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection. * @return Boolean */ contains : function(el){ return this.indexOf(el) != -1; }, -
/** - * Removes the specified element(s). - * @param {Mixed} el The id of an element, the Element itself, the index of the element in this composite + /** + * Removes the specified element(s). + * @param {String/HTMLElement/Ext.Element/Number} el The id of an element, the Element itself, the index of the element in this composite * or an array of any of those. * @param {Boolean} removeDom (optional) True to also remove the element from the document - * @return {CompositeElement} this + * @return {Ext.CompositeElement} this */ removeElement : function(keys, removeDom){ var me = this, @@ -75,12 +78,12 @@ Ext.apply(Ext.CompositeElementLite.prototype, { Ext.removeNode(el); } } - els.splice(val, 1); + Ext.Array.erase(els, val, 1); } }); return this; } }); -
+
- \ No newline at end of file +