Read more

dojo.hitch and scope - more romance

Scope in javascript is one of those topics that won’t go away. It continues to trip people up again and again, despite numerous articles including a great cookie right here on dojo campus. In this cookie, I’m going to sneak up on dojo.hitch from a different angle by re-visiting some of the basics of how function scope works.
Read the rest of this entry »

Read more

Jammastergoat - dojo.hitch

This cookie has been a long time coming. I don’t think any one component of Dojo base has more uses, or is used more often. Unfortunately, because of the power contained within this single simple function, it’s terribly difficult to explain, though I am going to take a very noble stab at giving all of you the power contained within the most magic of magic functions: dojo.hitch.

Read the rest of this entry »