Re: function and arguments as aguments
Thomas 'PointedEars' Lahn wrote:
[...][color=blue]
>
> The test case
>
> Object.prototyp e.join = Array.prototype .join;
> (function() { alert(arguments .join("x")); })(1, 2, 3); // "1x2x3"
> alert({1: 2, 2: 3, length: 3}.join("x")); // "x2x3"
>
> works in the following user agents:
>
> - Mozilla Firefox 1.5.0.1
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060209
> Debian/1.5.dfsg+1.5.0. 1-2 Firefox/1.5.0.1
>
> - Mozilla (Suite) 1.7.12
> [Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205
> Debian/1.7.12-1.1]
>
> - Netscape Navigator 4.8
> [Mozilla/4.8 [en] (X11; U; Linux 2.6.15.1-20060130.184242 +0100 i686)]
>
> - Opera 8.51
> [Opera/8.51 (X11; Linux i686; U; en)]
>
> - Konqueror 3.5.1
> [Mozilla/5.0 (compatible; Konqueror/3.5;
> Linux 2.6.15.1-20060130.184242 +0100; X11; i686; de, en_US)
> KHTML/3.5.1 (like Gecko) (Debian package 4:3.5.1-2)]
>
> IE, Windows, and Mac testers, it's your turn :)[/color]
Add Safari 1.0.3 (and later I guess), Firefox 1.5 and Opera 8.5 on Mac.
--
Rob
Thomas 'PointedEars' Lahn wrote:
[...][color=blue]
>
> The test case
>
> Object.prototyp e.join = Array.prototype .join;
> (function() { alert(arguments .join("x")); })(1, 2, 3); // "1x2x3"
> alert({1: 2, 2: 3, length: 3}.join("x")); // "x2x3"
>
> works in the following user agents:
>
> - Mozilla Firefox 1.5.0.1
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060209
> Debian/1.5.dfsg+1.5.0. 1-2 Firefox/1.5.0.1
>
> - Mozilla (Suite) 1.7.12
> [Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205
> Debian/1.7.12-1.1]
>
> - Netscape Navigator 4.8
> [Mozilla/4.8 [en] (X11; U; Linux 2.6.15.1-20060130.184242 +0100 i686)]
>
> - Opera 8.51
> [Opera/8.51 (X11; Linux i686; U; en)]
>
> - Konqueror 3.5.1
> [Mozilla/5.0 (compatible; Konqueror/3.5;
> Linux 2.6.15.1-20060130.184242 +0100; X11; i686; de, en_US)
> KHTML/3.5.1 (like Gecko) (Debian package 4:3.5.1-2)]
>
> IE, Windows, and Mac testers, it's your turn :)[/color]
Add Safari 1.0.3 (and later I guess), Firefox 1.5 and Opera 8.5 on Mac.
--
Rob
Comment