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.

mikemcd (1) [Avatar] Offline
Hello - I am writing to inform you about the code for Chapter 2. It seems as if each filename does not correspond to the code listing in that chapter. This might be because of the missing javascript file for chapter 2.1?

Also, you reference in the book the dom module below

on(dom.byId('drawPolygon'), 'click', function() {

But in the code provided you use the query module instead.

query('#drawPolygon').on('click', function () {
rene.rubalcava (10) [Avatar] Offline
Re: Chapter 2 code and chapter correspondence
Thanks for catching that query one, I had actually missed that one. The latest source code is still being cleaned up as I had left some older files in there and gotten my numbering out of sequence in a couple of spots. Those will all be updated soon. Thanks!