Skip to content

Instantly share code, notes, and snippets.

@juristr
Created November 19, 2012 21:30
Show Gist options
  • Save juristr/4114109 to your computer and use it in GitHub Desktop.
Save juristr/4114109 to your computer and use it in GitHub Desktop.
jQuery Plugin Template
(function($, undefined){
$.fn.defaults = {};
$.fn.dots = function(options){
var opts = $.extend({}, $.fn.dots.defaults, options);
return this.each(function(){
$this = $(this);
var o = $.meta ? $.extend({}, opts, $this.data()) : opts;
//the plugin code
});
};
})(jQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment