Errata for JavaScript Web Applications
Submit your own errata for this product.
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update
| Version |
Location |
Description |
Submitted By |
Date Submitted |
| PDF |
Page 44
1st code block |
The data used here will almost certainly not be an array, therefore they won't have a length property and the populate code will not work. For iterating over objects a for in loop is more appropriate.
|
Jasmyn |
May 12, 2013 |
| PDF |
Page 38
top |
The GUID line was omitted from the function, could be confusing.
create: function() {
if (!this.id) this.id = Math.guid(); // this line left out of book
this.newRecord = false;
this.parent.records[this.id] = this.dup();
},
|
Jasmyn |
May 09, 2013 |
| PDF |
Page 16
code for overwirte of Function.prototype.bind |
The new Function.prototype.bind returns a function object : bound, which is just returned without executed.
To invoke it, the client code should be this.onclick.bind()(this);
Or we should invoke it before we return it to client
|
Leon |
Mar 16, 2013 |
| PDF |
Page 37
Bottom of page |
When creating the asset instance, the book uses the new keyword:
var asset = new Asset( { name: "foo" });
This should instead be:
var asset = Asset.init( { name: "foo"} );
|
Anonymous |
Feb 04, 2013 |
| PDF |
Page 54
Second code block on the page |
“… this.toggleClass: function(e){ …” should be “toggleClass: function(e){”
|
Anonymous |
Jan 04, 2013 |
| PDF |
Page 172
5th paragraph beginning with "Routes are parsed" |
"end" should be "beginning".
|
Anonymous |
Mar 09, 2012 |