/* [URL] */ ;(function(defaults, $, window, document, undefined) { 'use strict'; $.extend({ // Function to change the default properties of the plugin // Usage: // jQuery.pluginSetup({property:'Custom value'}); pluginSetup : function(options) { return $.extend(defaults, options); } }).fn.extend({ // Usage: // jQuery(selector).pluginName({property:'value'}); pluginName : function(options) { options = $.extend({}, defaults, options); return $(this).each(function() { // Plugin logic // Calling the function: // jQuery(selector).pluginName(options); }); }, otherMethod : function() { // Some logic // Calling the function: // jQuery(selector).otherMethod(options); } }); })({ property : "value", otherProperty : "value" }, jQuery, window, document);