Created
November 19, 2012 21:30
-
-
Save juristr/4114109 to your computer and use it in GitHub Desktop.
jQuery Plugin Template
This file contains hidden or 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
(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