I never remember to use this Can be shortened to: Maybe I’ll remember it now…8-)
Posts Tagged: jquery
jQuery 1.5 introduced deferred objects. From the jQuery site: jQuery.Deferred(), introduced in version 1.5, is a chainable utility object that can register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function. I learned about deferred objects recently when I needed to chain two […]
Use a closure This is an example of how I used a closure to keep the context I wanted while binding an anonymous function to a jQuery UI event.