Last active
April 8, 2016 02:01
-
-
Save guilhermehn/4ea73bc0d7966fc913b014c066cfc2b5 to your computer and use it in GitHub Desktop.
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($) { | |
var MyLib = { | |
doSomething() { | |
// ... | |
} | |
} | |
// amd/umd mumbo jumbo | |
// simplified for the sake of brevity | |
if (typeof window !== 'undefined') { | |
window.MyLib = Mylib | |
} | |
else { | |
module.exports = MyLib | |
} | |
}).call(this, jQuery) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment