juristr
11/19/2012 - 9:30 PM

jQuery Plugin Template

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)