Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / docs / source / CompositeElementLite-more.html
index b570df4..8ca808c 100644 (file)
@@ -1,80 +1,86 @@
-<html>\r
-<head>\r
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    \r
-  <title>The source code</title>\r
-    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
-    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
-</head>\r
-<body  onload="prettyPrint();">\r
-    <pre class="prettyprint lang-js">/**\r
- * @class Ext.CompositeElementLite\r
- */\r
-Ext.apply(Ext.CompositeElementLite.prototype, {        \r
-       addElements : function(els, root){\r
-        if(!els){\r
-            return this;\r
-        }\r
-        if(typeof els == "string"){\r
-            els = Ext.Element.selectorFunction(els, root);\r
-        }\r
-        var yels = this.elements;        \r
-           Ext.each(els, function(e) {\r
-               yels.push(Ext.get(e));\r
-        });\r
-        return this;\r
-    },\r
-    \r
-    <div id="method-Ext.CompositeElementLite-first"></div>/**\r
-     * Returns the first Element\r
-     * @return {Ext.Element}\r
-     */\r
-    first : function(){\r
-        return this.item(0);\r
-    },   \r
-    \r
-    <div id="method-Ext.CompositeElementLite-last"></div>/**\r
-     * Returns the last Element\r
-     * @return {Ext.Element}\r
-     */\r
-    last : function(){\r
-        return this.item(this.getCount()-1);\r
-    },\r
-    \r
-    <div id="method-Ext.CompositeElementLite-contains"></div>/**\r
-     * Returns true if this composite contains the passed element\r
-     * @param el {Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.\r
-     * @return Boolean\r
-     */\r
-    contains : function(el){\r
-        return this.indexOf(el) != -1;\r
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
+  <title>The source code</title>
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+</head>
+<body  onload="prettyPrint();">
+    <pre class="prettyprint lang-js">/*!
+ * Ext JS Library 3.2.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+/**
+ * @class Ext.CompositeElementLite
+ */
+Ext.apply(Ext.CompositeElementLite.prototype, {        
+       addElements : function(els, root){
+        if(!els){
+            return this;
+        }
+        if(typeof els == "string"){
+            els = Ext.Element.selectorFunction(els, root);
+        }
+        var yels = this.elements;        
+           Ext.each(els, function(e) {
+               yels.push(Ext.get(e));
+        });
+        return this;
     },
     
-    <div id="method-Ext.CompositeElementLite-removeElement"></div>/**\r
-    * Removes the specified element(s).\r
-    * @param {Mixed} el The id of an element, the Element itself, the index of the element in this composite\r
-    * or an array of any of those.\r
-    * @param {Boolean} removeDom (optional) True to also remove the element from the document\r
-    * @return {CompositeElement} this\r
-    */\r
-    removeElement : function(keys, removeDom){\r
-        var me = this,\r
-               els = this.elements,        \r
-               el;             \r
-           Ext.each(keys, function(val){\r
-                   if ((el = (els[val] || els[val = me.indexOf(val)]))) {\r
-                       if(removeDom){\r
-                    if(el.dom){\r
-                        el.remove();\r
-                    }else{\r
-                        Ext.removeNode(el);\r
-                    }\r
-                }\r
-                       els.splice(val, 1);                     \r
-                       }\r
-           });\r
-        return this;\r
-    }    \r
+    <div id="method-Ext.CompositeElementLite-first"></div>/**
+     * Returns the first Element
+     * @return {Ext.Element}
+     */
+    first : function(){
+        return this.item(0);
+    },   
+    
+    <div id="method-Ext.CompositeElementLite-last"></div>/**
+     * Returns the last Element
+     * @return {Ext.Element}
+     */
+    last : function(){
+        return this.item(this.getCount()-1);
+    },
+    
+    <div id="method-Ext.CompositeElementLite-contains"></div>/**
+     * 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.
+     * @return Boolean
+     */
+    contains : function(el){
+        return this.indexOf(el) != -1;
+    },
+    
+    <div id="method-Ext.CompositeElementLite-removeElement"></div>/**
+    * Removes the specified element(s).
+    * @param {Mixed} 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
+    */
+    removeElement : function(keys, removeDom){
+        var me = this,
+               els = this.elements,        
+               el;             
+           Ext.each(keys, function(val){
+                   if ((el = (els[val] || els[val = me.indexOf(val)]))) {
+                       if(removeDom){
+                    if(el.dom){
+                        el.remove();
+                    }else{
+                        Ext.removeNode(el);
+                    }
+                }
+                       els.splice(val, 1);                     
+                       }
+           });
+        return this;
+    }    
 });
-</pre>    \r
-</body>\r
+</pre>    
+</body>
 </html>
\ No newline at end of file