Comparing version 0.0.10 to 0.0.12
@@ -30,3 +30,3 @@ var EventEmitter = require('events').EventEmitter, | ||
//error should always be first args | ||
err = args.shift(); | ||
var err = args.shift(); | ||
@@ -39,3 +39,7 @@ //on error | ||
if(listeners.success) { | ||
listeners.success.apply(this, args); | ||
try { | ||
listeners.success.apply(this, args); | ||
} catch(e) { | ||
listeners.error.call(this, err) | ||
} | ||
} | ||
@@ -42,0 +46,0 @@ |
@@ -10,3 +10,3 @@ { | ||
"repository": {}, | ||
"version": "0.0.10", | ||
"version": "0.0.12", | ||
"engines": {}, | ||
@@ -13,0 +13,0 @@ "dependencies": {}, |
@@ -208,7 +208,3 @@ | ||
### .logAllErrors(v) | ||
Captures all errors, and prints then to `stderr`. | ||
## CoffeeScript Example | ||
@@ -246,1 +242,6 @@ | ||
### Note | ||
Calling `.error()`, `.success()`, `.callback()` generates a new function which copies the previous listeners. | ||
Checkout [fs-test](outcome.js/blob/master/examples/fs-test.js) in the [examples](outcome.js/blog/master/examples) folder. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35997
778
246