Start any video training course for FREE. More than 500 to choose from. Learn more
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  May 01, 2015
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 14
bottom paragraph

This sentence: "Regardless of whether foo() is initially declared on foo..." --> "Regardless of whether foo() is initially declared on obj..."

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Nov 06, 2014  May 01, 2015
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  May 01, 2015
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 22
main code snippet

The final line of the code snippet should read: foo(); //undefined

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jul 21, 2015 
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  May 01, 2015
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 46
last code listing, 2nd line

foo: function() { should be foo: function foo() {

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jan 03, 2015  May 01, 2015
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 47
first tip/note, second line

function() { .. } should be: function foo() { .. }

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jan 03, 2015  May 01, 2015
, 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  May 01, 2015
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 57
2nd paragraph, last sentence

change "positive" to "non-negative" (no quotes)

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jul 09, 2015 
Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 68
4th paragraph (incl the note)

"For accessor desciptors, the value" desciptors should be descriptors

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jan 31, 2015  May 01, 2015
, 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  May 01, 2015
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  May 01, 2015
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 119
last paragraph

"we don’t really care (or even need) Foo" should be: "we don’t really care about (or even need) Foo"

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Jun 08, 2015 
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  May 01, 2015
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  May 01, 2015
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  May 01, 2015
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  May 01, 2015
, Printed, PDF, ePub, Mobi, Safari Books Online, Other Digital Version
Page 173
"About the Author" section

My bio should be: Kyle Simpson is an Open Web Evangelist from Austin, TX, who's passionate about all things JavaScript. He's an author, workshop trainer, tech speaker, and OSS contributor/leader.

Kyle Simpson
Kyle Simpson
O'Reilly Author 
Feb 08, 2015  May 01, 2015