Changeset 237

Show
Ignore:
Timestamp:
10/11/07 19:27:25 (2 years ago)
Author:
ydnar
Message:

bugid:59873; fix atEnd() implementation to allow for testing the last item in a list

Location:
branches/vox-38/common
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/vox-38/common/Core.js

    r228 r237  
    894894         
    895895        atEnd: function() { 
    896             return this.index >= (this.data.length - 1) ? true : false; 
     896            return this.index >= this.data.length ? true : false; 
    897897        }, 
    898898         
  • branches/vox-38/common/DOM.js

    r228 r237  
    589589            var e = en.item(); 
    590590            if( DOM.hasClassName( e, cn ) ) 
    591                 filtered[ filtered.length ] = e; 
     591                filtered.push( e ); 
    592592        } 
    593593        return filtered;