You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Stefan Bodewig <bo...@apache.org> on 2003/04/25 13:13:57 UTC
breadcrumbs.js and MS IE for Mac OS X
Hi,
we (Anters) recently had a report by a Mac user who still used that
broken Internet Explorer that ships with Mac OS X (instead of Safari
or Mozilla, that is). He told us he was getting JavaScript errors at
the Ant site - and provided a patch that made the breadcrumbs work for
IE at the same time.
All we had to do was to add the snippet below to our version of
breadcrumbs.js, which we've simply stolen from Forrest. I thought it
would be nice to give something back.
Cheers
Stefan
/**
* IE 5 on Mac doesn't know Array.push.
*
* Implement it.
*/
var abc = new Array();
if (!abc.push) {
Array.prototype.push = function(what){this[this.length]=what}
}
Re: breadcrumbs.js and MS IE for Mac OS X
Posted by Jeff Turner <je...@apache.org>.
On Fri, Apr 25, 2003 at 01:13:57PM +0200, Stefan Bodewig wrote:
> Hi,
>
> we (Anters) recently had a report by a Mac user who still used that
> broken Internet Explorer that ships with Mac OS X (instead of Safari
> or Mozilla, that is). He told us he was getting JavaScript errors at
> the Ant site - and provided a patch that made the breadcrumbs work for
> IE at the same time.
>
> All we had to do was to add the snippet below to our version of
> breadcrumbs.js, which we've simply stolen from Forrest. I thought it
> would be nice to give something back.
Applied, thanks!
--Jeff
>
> Cheers
>
> Stefan