Caffeinated Simpleton » Blog Archive » An Introduction to JavaScript's "this" - 2 views
-
That’s what this is expected to be, anyway. It’s expected to be a reference to the current instance of whatever object it’s defined within.
-
It’ll give an error saying that this doesn’t have a member called condiments, even though it clearly does. What happened?!
-
This is because there is no binding of functions to instances in JavaScript.
- ...3 more annotations...