We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841a9cc commit 7aabb30Copy full SHA for 7aabb30
CHANGES.txt
@@ -11,6 +11,7 @@ Fixed:
11
- fixed content-type when templates are serving up xml (thanks Godefroid
12
Chapelle)
13
- fixed IE double-submit when it shouldn't (sf bug 842254)
14
+- fixed check for JS pop()/push() to make more general (sf bug 877504)
15
16
17
2003-12-17 0.6.4
templates/classic/html/help_controls.js
@@ -35,10 +35,11 @@ function push() {
35
}
36
37
38
-// add the pop() and push() method to Array prototype for old IE browser
39
-if (bName() == 1 && bVer() >= 5.5);
40
-else {
+// add the pop() and push() method to Array if they're not there
+if (!Array.prototype.pop) {
41
Array.prototype.pop = pop;
+}
42
+if (!Array.prototype.push) {
43
Array.prototype.push = push;
44
45
0 commit comments