From 52eb4a61309c9ae6969dddceb49ba52264f13faa Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 15 Apr 2003 11:08:36 +0000 Subject: [PATCH] Make breadcrumbs work on IE 5 for MacOS. Submitted by: fritz git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274461 13f79535-47bb-0310-9956-ffa450edef68 --- docs/breadcrumbs.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/breadcrumbs.js b/docs/breadcrumbs.js index e0c10c402..d98655d32 100644 --- a/docs/breadcrumbs.js +++ b/docs/breadcrumbs.js @@ -62,6 +62,16 @@ *@version 1.0 */ +/** + * IE 5 on Mac doesn't know Array.push. + * + * Implement it - courtesy to fritz. + */ +var abc = new Array(); +if (!abc.push) { + Array.prototype.push = function(what){this[this.length]=what} +} + /* ======================================================================== CONSTANTS ======================================================================== */