Comments on: Xbrowser Event Handling http://mattsnider.com/languages/javascript/xbrowser-event-handling/ Understanding JavaScript and Frameworks Sun, 07 Sep 2008 03:49:42 +0000 http://wordpress.org/?v=2.1.2 By: Lazy Function Definition Pattern | Matt Snider JavaScript Resource http://mattsnider.com/languages/javascript/xbrowser-event-handling/#comment-433 Lazy Function Definition Pattern | Matt Snider JavaScript Resource Thu, 04 Oct 2007 03:37:43 +0000 http://mattsnider.com/languages/javascript/xbrowser-event-handling/#comment-433 [...] Then any future time you call “getStartTime” you will always get the value of ‘t’ as the closure is now the definition of the Function. This pattern is incredible powerful when tuning your JavaScript, as: you do not need to define variables unless they are needed, those variables can exists as scoped (private) variables, and future calls to Functions using this pattern will be faster. We can apply this to “attachEvent” Function in last Friday’s article, Xbrowser Event Handling: [...] […] Then any future time you call “getStartTime” you will always get the value of ‘t’ as the closure is now the definition of the Function. This pattern is incredible powerful when tuning your JavaScript, as: you do not need to define variables unless they are needed, those variables can exists as scoped (private) variables, and future calls to Functions using this pattern will be faster. We can apply this to “attachEvent” Function in last Friday’s article, Xbrowser Event Handling: […]

]]>
By: Event Package Part 1 | Matt Snider JavaScript Resource http://mattsnider.com/languages/javascript/xbrowser-event-handling/#comment-806 Event Package Part 1 | Matt Snider JavaScript Resource Thu, 18 Oct 2007 09:39:28 +0000 http://mattsnider.com/languages/javascript/xbrowser-event-handling/#comment-806 [...] I will be using the “attachFunc” and “detachFunc” methods outlined in my X-Browser Event Handling [...] […] I will be using the “attachFunc” and “detachFunc” methods outlined in my X-Browser Event Handling […]

]]>