Skip to content

Instantly share code, notes, and snippets.

@andybuchanan
andybuchanan / widget-template.js
Created April 12, 2012 19:42 — forked from ehynds/widget-template.js
Attempt at Jquery UI Widget "boilerplate" with local and global variables and functions
// This is my attempt at a Jquery UI Widget boilerplate which expands upon the others I have
// seen. Of particular interest to me is establishing best practices for instance, widget and
// global; variables, arrays, object, functions....
(function($, undefined){
// locals - accessible by all instances but not accessible outside this closure