Created
May 4, 2015 21:00
-
-
Save saper/67d2bd6a6cd81ee9773a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request') | |
request.on('init', function(er) {console.log('starting')}) | |
request.on('initialized', function(er) {console.log('ready to go')}) | |
request.on('error', function(er) {console.log('first error handler')}) | |
var z = request.on('error', function(er) { console.log('second error handler')}).get('aaa'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
starting | |
first error handler | |
second error handler | |
ready to go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment