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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---