lib/editTree/base.js
function(name) {
			if (!Array.isArray(name))
				name = [name];
			
			// split names and indexes
			var names = [], indexes = [];
			name.forEach(function(item) {
				if (typeof item === 'string') {
					names.push(item);
				} else if (typeof item === 'number') {
					indexes.push(item);
				}
			});
			
			return this.list().filter(function(attribute, i) {
				return ~indexes.indexOf(i) || ~names.indexOf(attribute.name());
			});
		}
function(name) {
			if (!Array.isArray(name))
				name = [name];
			
			// split names and indexes
			var names = [], indexes = [];
			name.forEach(function(item) {
				if (typeof item === 'string') {
					names.push(item);
				} else if (typeof item === 'number') {
					indexes.push(item);
				}
			});
			
			return this.list().filter(function(attribute, i) {
				return ~indexes.indexOf(i) || ~names.indexOf(attribute.name());
			});
		}
function ( name ) { if ( ! Array . isArray ( name ) ) name = [ name ] ; // split names and indexes var names = [ ] , indexes = [ ] ; name . forEach ( function ( item ) { if ( typeof item === 'string' ) { names . push ( item ) ; } else if ( typeof item === 'number' ) { indexes . push ( item ) ; } } ) ; return this . list ( ) . filter ( function ( attribute , i ) { return ~ indexes . indexOf ( i ) || ~ names . indexOf ( attribute . name ( ) ) ; } ) ; }
Returns all children by name or indexes
@param {Object} name Element name(s) or indexes (<code>String</code>,
<code>Array</code>, <code>Number</code>)
@returns {Array}
Returns all children by name or indexes