1 | <html>
|
2 | <head>
|
3 | <script src="https://raw.github.com/crcn/outcome.js/master/outcome.min.js" type="text/javascript"></script>
|
4 | <script type="text/javascript">
|
5 |
|
6 | var onOutcome = outcome.error(function() {
|
7 | console.log("ERROR");
|
8 | });
|
9 |
|
10 |
|
11 | var onSuccess = onOutcome.success(function() {
|
12 | console.log("SUCCESS")
|
13 | });
|
14 |
|
15 |
|
16 | onSuccess(new Error("FAIL"))
|
17 | </script>
|
18 | </head>
|
19 | <body>
|
20 | </body> |
\ | No newline at end of file |