Modern Front-End Development for Rails: Incorrect information about previous version of code PDF p 24

When describing the previous constructor at the top of page 24, it says “The previous constructor took no arguments and hard-coded the identity of the button and the target.”

This is not entirely accurate. The previous version of the constructor took a single argument (day: HTMLElement, analogous to parent in the refactored version) and hard-coded the query selectors for assigning the other properties.

The next beta of the book will no longer have this specific example