ga-wdi-boston / js-function-context-this

Other
0 stars 126 forks source link

Add constructor steps to Constructor Invocation Pattern #4

Closed jrhorn424 closed 8 years ago

jrhorn424 commented 9 years ago

this gets bound after new object creation. Add reference to how new Function() works:

  1. new object created
  2. Function called upon new object (this is set)
  3. etc etc
RealWeeks commented 8 years ago

added notes detailing this after constructor section.

jrhorn424 commented 8 years ago

@J-Weeks Would you please change it to this? The same list was included in js-objects-constructors.

  1. creates a new empty object ({})
  2. attaches the constructor to the object as a property
  3. invokes the constructor function on the new object
  4. returns the object
RealWeeks commented 8 years ago

@jrhorn424 Can this be closed?

jrhorn424 commented 8 years ago

Thanks @J-Weeks