Argument order:
jQuery
$.each(collection,function(){ this.bla(); });
The reason index is first param is because wheb you need it it is the only param. The reason for the item param is incase you need to attach a scope object to be this!
jQuery
$.each(collection,function(){ this.bla(); });
The reason index is first param is because wheb you need it it is the only param. The reason for the item param is incase you need to attach a scope object to be this!
No comments yet.