- Was the object called with the new keyword, if so use the newly created object.
- Was the object called with Call or Apply? If so, use that object.
- Was the object called by a containing / owning object? If so, use it.
- Default to the global.
Created
September 26, 2016 04:42
-
-
Save RyanCCollins/7059de34c403fc00f3cfe59824df9bc8 to your computer and use it in GitHub Desktop.
This binding, how JavaScript does it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment