Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / src / core / Element.traversal-more.js
1 /*!
2  * Ext JS Library 3.1.1
3  * Copyright(c) 2006-2010 Ext JS, LLC
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 /**\r
8  * @class Ext.Element\r
9  */\r
10 Ext.Element.addMethods({\r
11     /**\r
12      * Creates a {@link Ext.CompositeElement} for child nodes based on the passed CSS selector (the selector should not contain an id).\r
13      * @param {String} selector The CSS selector\r
14      * @param {Boolean} unique (optional) True to create a unique Ext.Element for each child (defaults to false, which creates a single shared flyweight object)\r
15      * @return {CompositeElement/CompositeElementLite} The composite element\r
16      */\r
17     select : function(selector, unique){\r
18         return Ext.Element.select(selector, unique, this.dom);\r
19     }\r
20 });