max-mapper / callback-hell

information about async javascript programming
http://callbackhell.com
847 stars 100 forks source link

Change how `formUploader` exports stuff. #9

Closed domenic closed 12 years ago

domenic commented 12 years ago

The subsequent paragraph tries to describe CommonJS modules, but then uses module.exports, which is a Node-only extension to the CommonJS spec. You can just use exports here anyway.

Furthermore, it exports postResponse, but nobody ever uses that, which is just confusing. Leaving postResponse as an un-exported function is a good example of modularization, so let's do that instead.