Created
January 29, 2012 03:25
-
-
Save psiborg/1696988 to your computer and use it in GitHub Desktop.
JS Namespace Template
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
| /*jslint devel: true, browser: true, white: true, nomen: true */ | |
| /** | |
| * @description | |
| * | |
| */ | |
| var namespace = (function () { | |
| "use strict"; | |
| var internal = function () { | |
| console.info("internal"); | |
| }, | |
| core = { | |
| id: "ns", | |
| name: "NS", | |
| description: "NameSpace", | |
| version: "0.1", | |
| build: "20120101-0000", | |
| debug: false, | |
| /** | |
| * | |
| */ | |
| external: function (params) { | |
| console.info("external"); | |
| }, | |
| /** | |
| * Initialize | |
| */ | |
| init: function (params) { | |
| console.info("Initializing " + this.name + " (" + this.description + ") " + this.version); | |
| internal(); | |
| this.external(); | |
| } | |
| }; | |
| return core; | |
| }()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment