Upgrade to ExtJS 3.2.1 - Released 04/27/2010
[extjs.git] / src / core / CompositeElement.js
index 376daaf..2290632 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * Ext JS Library 3.2.0
+ * Ext JS Library 3.2.1
  * Copyright(c) 2006-2010 Ext JS, Inc.
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -25,12 +25,12 @@ els.hide(true); // all elements fade out and hide
 els.setWidth(100).hide(true);
 </code></pre>
  */
-Ext.CompositeElement = function(els, root){
-    this.elements = [];
-    this.add(els, root);
-};
-
-Ext.extend(Ext.CompositeElement, Ext.CompositeElementLite, {
+Ext.CompositeElement = Ext.extend(Ext.CompositeElementLite, {
+    
+    constructor : function(els, root){
+        this.elements = [];
+        this.add(els, root);
+    },
     
     // private
     getElement : function(el){
@@ -106,7 +106,7 @@ Ext.Element.select = function(selector, unique, root){
  * @param {Boolean} unique (optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object)
  * @param {HTMLElement/String} root (optional) The root element of the query or id of the root
  * @return {CompositeElementLite/CompositeElement}
- * @member Ext.Element
+ * @member Ext
  * @method select
  */
 Ext.select = Ext.Element.select;
\ No newline at end of file