Last active
May 9, 2016 23:07
-
-
Save pazguille/1380811 to your computer and use it in GitHub Desktop.
Namespace template
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
(function (window) { | |
'use strict'; | |
var namespace = (function () { | |
// Private members | |
var core = { | |
// Public members | |
}; | |
return core; | |
}()); | |
// Expose namespace | |
window.namespace = namespace; | |
}(this)); |
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
(function (window) { | |
'use strict'; | |
// Private members | |
var namespace = { | |
// Public members | |
}; | |
// Expose namespace | |
window.namespace = namespace; | |
}(this)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment