The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

jugglinmike (4) [Avatar] Offline
#1
Small bug in listing 6.2--missing "{"

if (login.addEventListener)

should read:

if (login.addEventListener) {

Might I suggest incorporating JSHint into your document build process? Anton might take some convincing, but it would definitely prevent this kind of error smilie
benvinegar (68) [Avatar] Offline
#2
Re: Error in Listing 6.2
Oy, thanks for pointing this out. Our document format (XML/Docbook) is kind of nutty, but I think we could incorporate JSHint with a little elbow grease. Thanks for the suggestion.