3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>The source code</title>
5 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
6 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
8 <body onload="prettyPrint();">
9 <pre class="prettyprint lang-js">/*!
10 * Ext JS Library 3.3.1
11 * Copyright(c) 2006-2010 Sencha Inc.
12 * licensing@sencha.com
13 * http://www.sencha.com/license
16 * @class Ext.CompositeElementLite
18 Ext.apply(Ext.CompositeElementLite.prototype, {
19 addElements : function(els, root){
23 if(typeof els == "string"){
24 els = Ext.Element.selectorFunction(els, root);
26 var yels = this.elements;
27 Ext.each(els, function(e) {
28 yels.push(Ext.get(e));
33 <div id="method-Ext.CompositeElementLite-first"></div>/**
34 * Returns the first Element
35 * @return {Ext.Element}
41 <div id="method-Ext.CompositeElementLite-last"></div>/**
42 * Returns the last Element
43 * @return {Ext.Element}
46 return this.item(this.getCount()-1);
49 <div id="method-Ext.CompositeElementLite-contains"></div>/**
50 * Returns true if this composite contains the passed element
51 * @param el {Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.
54 contains : function(el){
55 return this.indexOf(el) != -1;
58 <div id="method-Ext.CompositeElementLite-removeElement"></div>/**
59 * Removes the specified element(s).
60 * @param {Mixed} el The id of an element, the Element itself, the index of the element in this composite
61 * or an array of any of those.
62 * @param {Boolean} removeDom (optional) True to also remove the element from the document
63 * @return {CompositeElement} this
65 removeElement : function(keys, removeDom){
69 Ext.each(keys, function(val){
70 if ((el = (els[val] || els[val = me.indexOf(val)]))) {