Skip to content

Commit 955f3d9

Browse files
committed
Merge pull request MithrilJS#678 from venning/function
Consistency: use variable instead of literal
2 parents 5cfcbfe + 05e6088 commit 955f3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mithril.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ var m = (function app(window, undefined) {
964964
if (state === RESOLVING && typeof successCallback === FUNCTION) {
965965
promiseValue = successCallback(promiseValue)
966966
}
967-
else if (state === REJECTING && typeof failureCallback === "function") {
967+
else if (state === REJECTING && typeof failureCallback === FUNCTION) {
968968
promiseValue = failureCallback(promiseValue);
969969
state = RESOLVING
970970
}

0 commit comments

Comments
 (0)