I’ve been doing the book and have been following along just fine until Chapter 10.
this.$formElement = $(selector)
I get that an instance of FormHandler, which I tried looking ahead a bit and didn’t see anything in main.js for it as it appears the instance will be more related to createOrder being passed in.
That said, the stumbling block here for me is $.
I know the
var $ = window.jQuery
is in the IIFE for this chapter.
So I assume $(selector) is a function call to jQuery with whatever selector is passed in to FormHandler function.
I think what this chapter needed was a slower intro to jQuery or a separate introductory piece just on jQuery. Maybe my opinion will change as I get ahead, but this was my first “I’m lost” moment in the book.
Myrhillion