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 25ae3ef commit 8b627d8Copy full SHA for 8b627d8
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