Skip to content

Commit 669febd

Browse files
committed
Use Function.prototype.apply() as hopefulle HTMLUnit compatible alternative
1 parent dc8c5d3 commit 669febd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

war/src/main/webapp/scripts/hudson-behavior.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ function validateButton(checkUrl, paramList, button) {
26422642
let callback = callInfo["callback"];
26432643
let args = callInfo["arguments"];
26442644
if (window[callback] && typeof window[callback] === "function") {
2645-
window[callback](...args);
2645+
window[callback].apply(window, args);
26462646
}
26472647
}
26482648

0 commit comments

Comments
 (0)