FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix assertAsyng default parameter value for older browsers · Monogatari/Monogatari@77547e0 · GitHub

Commit 77547e0

Browse files
committed
Fix assertAsyng default parameter value for older browsers
1 parent 09225be commit 77547e0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎js/monogatari.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,10 @@ $_ready(function() {
880880
**/
881881

882882
// Assert the result of a function
883-
function assertAsync (callable, args = null) {
883+
function assertAsync (callable, args) {
884+
if (typeof args === "undefined") {
885+
args = null;
886+
}
884887
block = true;
885888
return new Promise (function (resolve, reject) {
886889
var result = callable.apply(null, args);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL