Return to Snippet

Revision: 41591
at February 20, 2011 18:59 by loric


Initial Code
var obj = {
	a : Object,
	b : Array,
	c : false,
	d : null,
	init : function() {
		// set local object vars here
		this.run();
	},
	run : function() {
		// run bulk of behavior here
	}
}
function initializer() {
	obj.init();
	// other init() methods go here
}
addEvent(window,'load',inializer);

Initial URL


Initial Description


Initial Title
JS Object Tmplate

Initial Tags
javascript, js, object, template

Initial Language
JavaScript