lib/editTree/base.js
function(name) {
			if (typeof name === 'number') {
				return this.list()[name];
			}
			
			if (typeof name === 'string') {
				return utils.find(this.list(), function(prop) {
					return prop.name() === name;
				});
			}
			
			return name;
		}
function(name) {
			if (typeof name === 'number') {
				return this.list()[name];
			}
			
			if (typeof name === 'string') {
				return utils.find(this.list(), function(prop) {
					return prop.name() === name;
				});
			}
			
			return name;
		}
function ( name ) { if ( typeof name === 'number' ) { return this . list ( ) [ name ] ; } if ( typeof name === 'string' ) { return utils . find ( this . list ( ) , function ( prop ) { return prop . name ( ) === name ; } ) ; } return name ; }
Returns attribute object
@param {String} name Attribute name or its index
@returns {EditElement}
Returns attribute object