Created
October 8, 2014 04:36
-
-
Save bencooling/799c448ce0019ca237fe to your computer and use it in GitHub Desktop.
amd compatible 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(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