To be honest, I am not a big fun of conditional comments but it does not matter, as long as this simple function will be quickly optimized :-)
On Fri, Sep 4, 2009 at 11:02 AM, DBJDBJ <dbj...@gmail.com> wrote: > > Ditto : > > inArray : function( elem, array ) { > return array.indexOf( elem ); > } , > /*...@cc_on > inArray : function( elem, array ) { > for ( var i = 0, length = array.length; i < length; i++ ) > { > if ( array[ i ] === elem ) { > return i; > } > } > return -1; > } , > @*/ > > Nice, clear and simple ... Same as my (?) old proposal for optimising > the internal function xhr() : > > xhr: function() { > return new XMLHttpRequest(); > }, > /*...@cc_on > xhr: function() { > return new ActiveXObject("Microsoft.XMLHTTP") ; > }, > @*/ > > > @Andrea: I would love to read you angle on this? Maybe there is > something so wrong and so obviuos in here, so that is very difficult > to spot ? > > --DBJ > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---