Last active
August 29, 2015 13:57
-
-
Save inkbase/9521795 to your computer and use it in GitHub Desktop.
JavaScript: Base module pattern
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
//Include jQuery if needed. Including it here will reduce HTTP requests | |
var base = { | |
init: function () { | |
//Do stuff | |
} | |
}; | |
/* | |
//This can be used if jQuery is included above | |
$(document).ready(function () { | |
base.init(); | |
}); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment