It relies on the indexOf from the String object, not the Array object.

--
Brandon Aaron

On 10/21/06, Webunity | Gilles van den Hoven <[EMAIL PROTECTED]> wrote:
> I've seen that the "clean" function requires the Array.indexOf function,
> but this isn't available since Javascript 1.5. I am not sure on what
> javascript version jQuery is supposed to run on.
>
> Can anybody clarify that?
>
> If it is lowe then 1.5, we need to add the following snippet to
> jQuery.js to support older browsers:
> -----
> [].indexOf || (Array.prototype.indexOf = function(v, n){
>     n = (n == null) ? 0 : n;
>     var m = this.length;
>     for (var i=n; i<m; i++)
>         if (this[i] == v)
>             return i;
>     return -1;
> });
> -----
>
> --Gilles
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to