A List Apart: Articles: Getting Out of Binding Situations in ...
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
Bookmark History
Saved by 11 people (2 private), first by anonymouse user on 2008-07-02
- Funkadelicsoul on 2008-08-13 - Tags javascript , binding , website-development
- Navneetk on 2008-07-31 - Tags Javascript
- Youenn on 2008-07-30 - Tags javascript
- Progprog on 2008-07-27 - Tags javascript
- Tkabbs on 2008-07-15 - Tags javascript , binding , programming
Public Sticky notes
Highlighted by digiqr
Highlighted by digiqr
Highlighted by digiqr
this stops referencing its owner object and goes back to its default value, which in this case is window
Highlighted by digiqr
Highlighted by digiqr
apply method that allows you to call that function with specific binding (a specific this, if you will). It takes two arguments: the binding object, and an array of the arguments to be passed to the function
Highlighted by digiqr
call may feel nicer, as it takes the arguments themselves, not an array of them
Highlighted by digiqr
apply call
Highlighted by digiqr
apply on it, passing:
- the original object’s binding (the variable named
object), and - whatever arguments were provided at call time, as an array
Highlighted by digiqr
Highlighted by digiqr
Highlighted by digiqr
Highlighted by digiqr
Highlighted by digiqr
this.apply and call.Highlighted by digiqr


Public Comment