Skip to main content

Michael C. Harris's Library tagged binding   View Popular

02 Jul 08

A List Apart: Articles: Getting Out of Binding Situations in JavaScript

# Any member access must be qualified with the object it pertains to, even when it is this.
# Any sort of function reference (assigning as a value, passing as an argument) loses the function’s original binding.
# JavaScript provides two equivalent ways of explicitly specifying a function’s binding when calling it: apply and call.
# Creating a “bound method reference” requires an anonymous wrapper function, and a calling cost. In specific situations, leveraging closures may be a better alternative.

www.alistapart.com/...getoutbindingsituations - Preview

javascript programming binding

1 - 1 of 1
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo