small medium large xlarge

Errata for Async JavaScript

 

The latest version of the book is P2.0, released about 2 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (26-Mar-14)
#76569
PDF page: 4
A loop like this will run forever: var ajaxRequest = new XMLHttpRequest; ajaxRequest.open('GET', url); ajaxRequest.send(null); while (ajaxRequest....more...
  • Reported in: P2.0 (14-Oct-15)
#78995
PDF page: 14

whomever should be whoever around the end of the page--rob

  • Reported in: P1.0 (07-Jul-13)
#52139
PDF page: 17

In the checkPassword function, the query variable is defined as queryStr but used as selectUser.--William Bowers

  • Reported in: P1.0 (07-Jun-13)
#51884
Paper page: 23
This is from the LeanPub edition, so the error possibly doesn't exist (presuming it's an error). You list "...under jQuery 1.5+..." var promise....more...
  • Reported in: P1.0 (10-Mar-14)
#76527
Paper page: 27

$container.one('newTooltip', function() {
$tooltip.remove();
});
one instead of on

  • Reported in: P1.0 (13-Dec-12)
#50370
PDF page: 33
Paper page: 17

In the code snippets variables 'queryStr' and 'selectUser' should be the same
variable, I think.--michael cannon

  • Reported in: P1.0 (10-Dec-13)
#53339
PDF page: 34

The jsFiddle referenced is missing the alway() callback used in the text, so it does not log "A choice was made" as the text claims it will.--tom

  • Reported in: P1.0 (10-Dec-13)
#53340
PDF page: 38
The book states "So, to recap, a Promise takes three kinds of callbacks: done, fail, and progress." I believe you are overlooking the fourth callback...more...
  • Reported in: P1.0 (28-Aug-13)
#52489
PDF page: 51

In Asyncjs/forEachSeries.js code sample, "functio isFilename" has a typo. "function" is missing last 'n' (functio).
--Rob McCabe

  • Reported in: P1.0 (15-Dec-12)
#50381
PDF page: 51
Paper page: 36
var showPromise = $flash.show(); var hidePromise = $flash.hide(); I think they should be: var showPromise = $flash.show().promise(); var hideP...more...
  • Reported in: P1.0 (15-Dec-12)
#50382
PDF page: 70
Paper page: 55

I think it's better to mention that "to invoke the callback function in the worker is a must", or the queue cannot work properly.--PunCha

  • Reported in: P1.0 (24-Dec-12)
#50411
PDF page: 127
(ePub) Last paragraph, first sentence: “Node’s error conventions may not ideal for Async.js’s collection methods.” Should be “Node’s error co...more...