semmypurewal/LearningWebAppDev

Refactoring Tabs doesn't add them to the DOM

Closed this issue · 2 comments

In the refactoring of the tabs in Chapter 9, page 252, the function passed to tabs.forEach doesn't actually add the tabs to the DOM.

After defining the on click handler, I had to add this to return the site to it's prior state:

$("main .tabs").append($aElement);

Ah, yes. This definitely looks like an error. I will update it as official errata soon, and report back here once I do!

Thanks for the heads up!