PDA

View Full Version : MixedCollection.last() incorrect



brian.moeskau
14 Jan 2007, 11:51 PM
Current code:


last : function(){
return this.items[this.items.length];
}
Since it's by array index, it should be:

return this.items[this.items.length-1];