ccanaria
6/19/2016 - 12:31 PM

Javascript Class Template

Javascript Class Template

var Class = (function(){
	var Class,
	staticVars = "";
	
	function exports(args){
		return new Class(args);
	};
	
	Class = function(args){
		// Constructor
		this.objAttributes = "";
	};
	
	Class.prototype.classFunction = function(){
		alert("Functioning...");
	};
	
	return exports;
}());