Errata

Programming JavaScript Applications

Errata for Programming JavaScript 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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
1
Chapter 3 - Immediately Invoked Function Expressions

This page has no page number.

There are two toggle functions on this page, the first one is correct. I believe there is an error in the second toggle function.

isON = isOn <<<In Correct the ! (exclamation mark is missing)
isON = !isOn <<< Correct the boolean value of isOn is reversed

Note from the Author or Editor:
Fixed.

David Reburn  May 23, 2012 
1
Chapter 3 - Flyweight Pattern

There are no page number that I can see for this book so I use 1 to by the page number required.

The code statement below is on this page:
ok(wolf1.setPosition({x: 10, y: 10})
.position.x = 10, 'Object override works.');

1. the function setPosition does not specify an object but yet an object is being submitted. This may or may not be what the author wanted.

2. ".position.x = 10" << sets the value and doesnot really test the "position.x" value. I think ".position.x === 10 would be better

Note from the Author or Editor:
This is fixed!

David Reburn  May 23, 2012