You Don't Know JS: this & Object Prototypes

Errata for You Don't Know JS: this & Object Prototypes

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
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page page 60
First main (non-note) paragraph

typo: indicies --> indices

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Oct 21, 2014 
PDF
Page x
1st paragraph

Under the heading "Using Code Examples" there is a URL (the text URL is a hyperlink in the PDF format) that I believe is incorrect. https://github.com/oreillymedia/title_title That goes to a 404 (file not found) page on GitHub. It looks like "title_title" should have been replaced by something else.

Note from the Author or Editor:
Yes, that is a placeholder URL. The correct final link is: https://github.com/getify/You-Dont-Know-JS/tree/master/this%20&%20object%20prototypes -O'Reilly

Anonymous  Jun 16, 2014  Jun 26, 2014
PDF
Page x
1st paragraph

It appears that the code is available at the author's GitHub page. It is liked via a bit.ly short URL in the other "You Don't Know JS" book. The (possibly) correct URL for the YDKJS: this and Object Prototypes (this book) code files is https://github.com/getify/You-Dont-Know-JS/tree/master/this%20%26%20object%20prototypes

Anonymous  Jun 16, 2014  Jun 26, 2014
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 15
second paragraph

preceeded should be: preceded

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jul 23, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 30
only code snippet on page

The code snippet should instead read: if (!Function.prototype.softBind) { Function.prototype.softBind = function(obj) { var fn = this, curried = [].slice.call( arguments, 1 ), bound = function bound() { return fn.apply( (!this || (typeof window !== "undefined" && this === window) || (typeof global !== "undefined" && this === global) ) ? obj : this, curried.concat.apply( curried, arguments ) ); }; bound.prototype = Object.create( fn.prototype ); return bound; }; }

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jul 10, 2014 
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 56
first note on the page

assigment -> assignment

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Oct 24, 2014 
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 75
2nd paragraph

verions -> versions

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Oct 24, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 85
first raven note

circument should be: circumvent

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jul 23, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 131
Bottom code snippet

Controller.prototype.showDialog(title,msg) { should be: Controller.prototype.showDialog = function(title,msg) {

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jul 23, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 132
Middle of the page (of the code snippet)

This line of code: else if (user.length < 5) { Should read: else if (pw.length < 5) {

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jul 11, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 133
Last few lines of the code snippet

This code: var auth = new AuthController(); auth.checkAuth( // in addition to inheritance, we also need composition new LoginController() ); Should be: var auth = new AuthController( // in addition to inheritance, we also need composition new LoginController() ); auth.checkAuth();

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Aug 28, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 135
Very top of page (code listing)

This line of code: else if (user.length < 5) { Should read: else if (pw.length < 5) {

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jul 11, 2014