Skip to content

Instantly share code, notes, and snippets.

@pazguille
Last active May 9, 2016 23:07
Show Gist options
  • Save pazguille/1380811 to your computer and use it in GitHub Desktop.
Save pazguille/1380811 to your computer and use it in GitHub Desktop.
Namespace template
(function (window) {
'use strict';
var namespace = (function () {
// Private members
var core = {
// Public members
};
return core;
}());
// Expose namespace
window.namespace = namespace;
}(this));
(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