diff templates/classic/html/help_controls.js @ 1972:73989dcf020b maint-0.6

backport from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Sat, 17 Jan 2004 01:50:03 +0000
parents db187e5cabc6
children 37bf760544f3
line wrap: on
line diff
--- a/templates/classic/html/help_controls.js	Sat Jan 17 01:46:26 2004 +0000
+++ b/templates/classic/html/help_controls.js	Sat Jan 17 01:50:03 2004 +0000
@@ -35,10 +35,11 @@
   }
 }
 
-// add the pop() and push() method to Array prototype for old IE browser
-if (bName() == 1 && bVer() >= 5.5);
-else {
+// add the pop() and push() method to Array if they're not there
+if (!Array.prototype.pop) {
     Array.prototype.pop = pop;
+}
+if (!Array.prototype.push) {
     Array.prototype.push = push;
 }
 

Roundup Issue Tracker: http://roundup-tracker.org/