-
Object Oriented jQuery Plugins Mk 2
Update: This code is now on GitHub and has had some substantial improvements made. You should look at the latest code here and submit a pull request if you make any improvements! In a recent post, I outlined a method to abstract away the complexity of creating an encapsulated jQuery plugin. However, as was pointed […]
-
Object Oriented jQuery Plugins
Object oriented jQuery plugins have typically been hard to create in an elegant way. Here, we demonstrate how to design a clean jQuery plugin which allows for full encapsulation of data, and allows access to public methods without using the data object as a obvious proxy.