Skip to content

Instantly share code, notes, and snippets.

@psiborg
Created January 29, 2012 03:25
Show Gist options
  • Select an option

  • Save psiborg/1696988 to your computer and use it in GitHub Desktop.

Select an option

Save psiborg/1696988 to your computer and use it in GitHub Desktop.
JS Namespace Template
/*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