DZone voters are special people. Be special. Login and vote now.
By corbanbrook
via schf.uc.org
Published: Sep 25 2006 / 17:37
In mixing your javascript objects with DOM elements or the XMLHttpRequest object, keeping track of scope can be a problem. The solution is often a mess of global variables. You can greatly simplify your code by using closures. This article will present a simple pattern to apply in situations where scope must be preserved.
SaveShareSend
Tags: javascript
Add your comment
Voters For This Link (11)
corbanbrook
ducky
maad416
coboldinosaur
tonetheman
brianjlandau
toland
3monkeys
unchqua
cjharrelson
cvf