~cdparra/gelee/trunk

« back to all changes in this revision

Viewing changes to webui/ecosystem/extjs/build/core/CompositeElement-min.js

  • Committer: parra
  • Date: 2010-03-15 02:39:02 UTC
  • Revision ID: svn-v4:ac5bba68-f036-4e09-846e-8f32731cc928:trunk/gelee:1433
merged gelee at svn

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Ext JS Library 3.0 RC2
 
3
 * Copyright(c) 2006-2009, Ext JS, LLC.
 
4
 * licensing@extjs.com
 
5
 * 
 
6
 * http://extjs.com/license
 
7
 */
 
8
 
 
9
 
 
10
Ext.CompositeElement=function(els,root){this.elements=[];this.add(els,root);};Ext.extend(Ext.CompositeElement,Ext.CompositeElementLite,{invoke:function(fn,args){Ext.each(this.elements,function(e){Ext.Element.prototype[fn].apply(e,args);});return this;},add:function(els,root){if(!els)return this;if(typeof els=="string"){els=Ext.Element.selectorFunction(els,root);}
 
11
var yels=this.elements;Ext.each(els,function(e){yels.push(Ext.get(e));});return this;},item:function(index){return this.elements[index]||null;},indexOf:function(el){return this.elements.indexOf(Ext.get(el));},filter:function(selector){var me=this,out=[];Ext.each(me.elements,function(el){if(el.is(selector)){out.push(Ext.get(el));}})
 
12
me.elements=out;return me;},each:function(fn,scope){Ext.each(this.elements,function(e,i){return fn.call(scope||e,e,this,i)},this);return this;}});Ext.Element.select=function(selector,unique,root){var els;if(typeof selector=="string"){els=Ext.Element.selectorFunction(selector,root);}else if(selector.length!==undefined){els=selector;}else{throw"Invalid selector";}
 
13
return(unique===true)?new Ext.CompositeElement(els):new Ext.CompositeElementLite(els);};Ext.select=Ext.Element.select;
 
 
b'\\ No newline at end of file'