diff options
author | scottmotte <scott@scottmotte.com> | 2013-10-29 16:51:20 -0700 |
---|---|---|
committer | scottmotte <scott@scottmotte.com> | 2013-10-29 16:51:20 -0700 |
commit | 4d18607e3b7da78347b387f4f48988c64a15ac45 (patch) | |
tree | 12b59616168f2b795ec3b6e4ba61a69162959c1c /lib | |
parent | cefb73a3d219521f2e77ad57868a0a2ec0e6f648 (diff) | |
download | sendgrid-nodejs-4d18607e3b7da78347b387f4f48988c64a15ac45.zip sendgrid-nodejs-4d18607e3b7da78347b387f4f48988c64a15ac45.tar.gz sendgrid-nodejs-4d18607e3b7da78347b387f4f48988c64a15ac45.tar.bz2 |
Fix callback
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sendgrid.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js index 144d4e9..9a5ea60 100644 --- a/lib/sendgrid.js +++ b/lib/sendgrid.js @@ -35,8 +35,8 @@ var Sendgrid = function(api_user, api_key, options) { * @param {Function} callback A function to call when the processing is done. * This parameter is optional. */ - var web = function(email, cb) { - var callback = cb || function() { }; + var web = function(email, callback) { + var callback = callback || function() { }; if (email.constructor !== Email) { email = new Email(email); } @@ -55,15 +55,15 @@ var Sendgrid = function(api_user, api_key, options) { * @param {Function} callback A function to call when the processing is done. * This parameter is optional. */ - var smtp = function(email, nodeMailerOptions, cb) { + var smtp = function(email, nodeMailerOptions, callback) { // Support a callback without nodeMailerOptions - if (! cb && typeof nodeMailerOptions === "function") { + if (! callback && typeof nodeMailerOptions === "function") { callback = nodeMailerOptions; nodeMailerOptions = null; } - var callback = cb || function() { }; + var callback = callback || function() { }; if (email.constructor !== Email) { email = new Email(email); |