P.S. I know that was a bad example since that does not require a lazy assignment, it could be performed runtime
inArray: Array.prototype.indexOf ? function( elem, array ) { return array.indexOf(elem); } : function( elem, array ) { for ( var i = 0, length = array.length; i < length; i++ ) { if ( array[ i ] === elem ) return i; }; return -1; } , It was just an example how features detection could improve performances (and with native indexOf we know that performances are better) Regards --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---