Errata
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 |
---|---|---|---|---|---|
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 1 1 |
There have been a number of minor corrections made to the open-source version of the book. The changelog for these changes can be found here https://github.com/addyosmani/essential-js-design-patterns/commits/1.5.2, but we only need to pay attention to those made since October 27th. |
Addy Osmani |
Dec 11, 2012 | Mar 01, 2013 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 1 Numerous |
There have been a number of fixes made to the book since the last O'Reilly refresh. These changes can be found here in the changelog: https://github.com/addyosmani/essential-js-design-patterns/commits/1.5.2. Clicking any change will show the old text as well as the replacement text. |
Addy Osmani |
Apr 06, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 23 After var defineProp = function ( obj, key, value ){ |
A constructor pattern bug fix needs to be made to the code example at the position mentioned as follows https://github.com/addyosmani/essential-js-design-patterns/commit/598fd69d2c7529edfe059f94efcbc3a7ed64e153 |
Addy Osmani |
Jun 09, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 23 After the line "// If the above feels a little difficult to read, a short-hand could // be written as follows:" |
The config part of the code sample: |
Addy Osmani |
Jun 09, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 26 After There should be no comma used after the final name/value pair in the object, as this may result in errors. |
A semi-colon change needs to be made to: |
Addy Osmani |
Jun 09, 2013 | |
Printed | Page 36 First sentence under Advantages |
The sentence states, "We've seen why the Singleton pattern can be useful, but why is the Module pattern a good choice?" Note from the Author or Editor: |
Jared Goodpasture | Apr 21, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 44 Added an else-if branch to the Insert function. |
In the function listed 'ObserverList.prototype.Insert = function( obj, index ){', added an else-if branch to the Insert function. The change that needs to be made as follows: |
Addy Osmani |
Jun 09, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 44 ConcreteObserver code sample |
The code example: |
Addy Osmani |
Jun 09, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 45 ObserverList.prototype.RemoveAt = function( index ){ |
The code sample starting at the location in the page specified needs to be updated as follows: https://github.com/addyosmani/essential-js-design-patterns/commit/a45f385746dc6fe283b9e1857cf2744ed17947cb |
Addy Osmani |
Jun 09, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 45 Mid-page |
In the code sample: |
Addy Osmani |
Jun 09, 2013 | |
PDF, ePub | Page 47 Figure 9-4 |
Starting with Figure 9-4, the figures in Chapter 9 do not match with the section for which they are intended; so for instance, 9-4 shows the Mediator Pattern, but it is in the section for Publish/Subscribe Pattern. This continues for the remainder of the chapter. Note from the Author or Editor: |
Piers Hollott | Aug 28, 2012 | Sep 14, 2012 |
Printed | Page 47 Diagram 9.4 at the top of the page |
It's already been confirmed that the Publish/Subscribe diagram is missing from the pdf and ePub versions, and the Mediator diagram (the next section) is in it's place. It looks like all of the diagrams after that are shifted one space back. Note from the Author or Editor: |
Jared Goodpasture | Apr 21, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 58 Mid-page |
The following minor code changes need to be made to the code after "Here is the JavaScript code:". The change can be found here: |
Addy Osmani |
Jun 09, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 160 myFunctionParam |
I recently used the nested namespace plugin template, to find you couldn't overwrite the default options when initialising the plugin. It turns out that the myFunctionParam is confusing things. Removing it completely solved the issue for me. Note from the Author or Editor: |
Dan Voyce | Jun 02, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 209 Various |
Minor changes in consistency to code examples across module pattern chapter and namespacing chapter. We need to bring in the following change: |
Addy Osmani |
Jun 09, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 210 After // Outputs: hello world |
Typo correction in the code sample after the location mentioned. The following change needs to be made: https://github.com/addyosmani/essential-js-design-patterns/commit/0b3f73125335d4a9e553666b2650dcfcdb6ef320 |
Addy Osmani |
Jun 09, 2013 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 214 end of page |
The line "var mod = extend(myApp, "myApp.modules.module2");" needs to be changed as follows https://github.com/addyosmani/essential-js-design-patterns/commit/3f122e33d40c3f60b30188bf3836afca1a802920 |
Addy Osmani |
Jun 09, 2013 | |
Mobi | Page 2015 The Revealing Module Pattern Code Sample |
The publicSetName function in the Revealing Module Pattern code example is assigning its argument strName to a global variable, privateName. I think it should be assigning strName to privateVar. Note from the Author or Editor: |
Jared Cacurak | Sep 17, 2012 | Mar 01, 2013 |