jQuery - Callback failing if there is no options parameter
- by user249950
Hi, I'm attempting to build a simple plugin like this
(function($) {
$.fn.gpSlideOut = function(options, callback) {
// default options - these are used when no others are specified
$.fn.gpSlideOut.defaults = {
fadeToColour: "#ffffb3",
fadeToColourSpeed: 500,
slideUpSpeed: 400
…