Created
October 21, 2013 16:42
-
-
Save bbttxu/7086905 to your computer and use it in GitHub Desktop.
jquery plugin boilerplate
This file contains 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
((factory) -> | |
if typeof define is "function" and define.amd | |
# AMD. Register as an anonymous module. | |
define ["jquery"], factory | |
else | |
# Browser globals | |
factory jQuery | |
) ($) -> | |
$.fn.jqueryPlugin = -> | |
# Put your plugin code here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source: https://github.com/umdjs/umd/blob/master/jqueryPlugin.js