Skip to content

Instantly share code, notes, and snippets.

@bencooling
Created October 8, 2014 04:36
Show Gist options
  • Save bencooling/799c448ce0019ca237fe to your computer and use it in GitHub Desktop.
Save bencooling/799c448ce0019ca237fe to your computer and use it in GitHub Desktop.
amd compatible jquery plugin
(function(factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports !== 'undefined') {
module.exports = factory(require('jquery'));
} else {
factory(jQuery);
}
}(function($) {
'use strict';
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment