Last active
December 20, 2015 04:48
-
-
Save DWboutin/6073005 to your computer and use it in GitHub Desktop.
Start for a jQuery plugin
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($) { | |
'use strict'; | |
$.fn.pluginName = function(options, callback) { | |
//this selector | |
var thisEl = $(this); | |
// options | |
var settings = { | |
}; | |
// append the settings array to options | |
if(options) { | |
$.extend(settings, options); | |
} | |
if (typeof callback === "function") { | |
callback(); | |
} | |
} | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment