32 ultimix.iterator =
function( IteratingElements , BeforeNext , EndIteration )
34 this.current_position = 0;
35 this.elements = IteratingElements;
36 this.before_next = BeforeNext;
37 this.end_iteration = EndIteration;
47 ultimix.iterator.prototype.next =
function()
49 if(
jQuery( this.elements ).eq( this.current_position ).length )
52 this.current_position++;
67 ultimix.iterator.prototype.current_element =
function()
69 if(
jQuery( this.elements ).eq( this.current_position ).length )
71 return(
jQuery( this.elements ).eq( this.current_position ) );
84 ultimix.iterator.prototype.prev_element =
function()
86 if( this.current_position - 1 >= 0 &&
jQuery( this.elements ).eq( this.current_position - 1 ).length )
88 return(
jQuery( this.elements ).eq( this.current_position - 1 ) );