in

Emerald Hand

Emerald Hand, Inc. community home page.

This Blog

  • Home
  • Contact
  • About
  • Directory of Computers/Tech Blogs

Syndication

News

I'm back to blogging

Worm in liquid maze

Design and development of information management tools.

JavaScript closures

I've recently stumbled across this (http://www.jibbering.com/faq/faq_notes/closures.html) article. It covers (in-depth) JavaScript closures, what they are and how to use them correctly. I wish I would've read this article about half a year ago. It would've saved me a lot of frustration and time spent experimenting.

I'm often using closures in my classes to emulate private members. They can be very powerful allies and are probably one of the main reasons why JavaScript is so dynamic. At the same time they can be quite treacherous and lead to the resource waste, especially in IE with it's memory leak problems. In general I prefer to keep closure use to the minimum.

Here's another good article on closure in global scope.

Share this post: Email it! | bookmark it! | digg it! | reddit!
Readability Stats: Word Count: 129; Sentence Count: 12; Grade Level: 6.4, more info...
Published Aug 24 2005, 12:35 AM by Ornus
Filed under:

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add

About Ornus

Lead Sider and Xelog developer. I'm interested in information and how we can better manage it using computers. I'm also into design and understanding how to creating cool, useful, simple things.
Copyright © 2006-2007 EmeraldHand, Inc. All rights reserved.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems