JavaScript Encapsulation / JQuery

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-05-01T18:33:53Z Indexed on 2010/05/01 18:37 UTC
Read the original article Hit count: 285

I am trying to figure out how to keep my page variables in my application from being defined globally. I've come up with a few methods but am wondering if there is a general standard approach people use.

I've got my plugin design pattern down using this approach: http://www.virgentech.com/blog/2009/10/building-object-oriented-jquery-plugin.html. But I'm just not sure how to handle my page level encapsulation.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about oop