Lines Matching defs:item

38      * Get an item by index from the list.  Override this method if managing a
43 * @method item
45 * @return { mixed } the item at the requested index
47 item: function ( i ) {
52 * <p>Execute a function on each item of the list, optionally providing a
53 * custom execution context. Default context is the item.</p>
55 * <p>The callback signature is <code>callback( item, index )</code>.</p>
64 YArray_each( this._items, function ( item, i ) {
65 item = this.item( i );
67 fn.call( context || item, item, i, this );
74 * <p>Execute a function on each item of the list, optionally providing a
75 * custom execution context. Default context is the item.</p>
77 * <p>The callback signature is <code>callback( item, index )</code>.</p>
85 * @return { Boolean } True if the function returned true on an item
88 return YArray.some( this._items, function ( item, i ) {
89 item = this.item( i );
91 return fn.call( context || item, item, i, this );
99 * @param needle { mixed } The item to search for
137 // item getter
140 * mirroring. Similar in functionality to <code>item</code>, but is used by
145 * @param i { Integer } Index of item to fetch
146 * @return { mixed } The item appropriate for pass through API methods
148 ArrayListProto._item = ArrayListProto.item;
158 * class) that calls the named method on each item in the list with
164 * <pre><code>list.each( function ( item ) {
165 * item.methodName( 1, 2, 3 );
170 * <p>Additionally, the pass through methods use the item retrieved by the
176 * corresponding index for that item. If the iterated method does not
193 YArray_each( this._items, function ( item, i ) {
194 item = this._item( i );
196 var result = item[ name ].apply( item, args );
198 if ( result !== undefined && result !== item ) {