Created
May 14, 2011 02:32
-
-
Save haggen/971687 to your computer and use it in GitHub Desktop.
jQuery plugin simple boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jQuery plugin simple boilerplate v1.0 | |
* by Arthur Corenzan <arthur@corenzan.com> | |
* Creative Commons-Attribution-Share Alike | |
* http://creativecommons.org/licenses/by-sa/3.0 | |
*/ | |
(function($) { | |
//name your plugin | |
$.fn.PLUGIN = function(o) { | |
o = $.extend({ | |
//default options | |
}, o); | |
//definitions/setup/unique stuff | |
return this.each(function(i, that) { | |
$that = $(that); | |
//bind/repetitive stuff | |
}); | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment