Return to Snippet

Revision: 37012
at December 2, 2010 12:30 by johndonahue


Updated Code
/**
 * @constructor
 */
function MyConstructor() {
	
	if ( !( this instanceof arguments.callee ) ) {
		return new MyConstructor();
	}

	// Props and methods

}

Revision: 37011
at December 2, 2010 10:27 by johndonahue


Updated Code
/**
 * @constructor
 */
function _CONSTRUCTOR() {
	
	if ( !( this instanceof arguments.callee ) ) {
		return new _CONSTRUCTOR();
	}

	// Props and methods

}

Revision: 37010
at December 2, 2010 10:24 by johndonahue


Initial Code
/**
 * @constructor
 */
function _CONSTRUCTOR() {
	
	if ( !( this instanceof _CONSTRUCTOR ) ) {
		return new _CONSTRUCTOR();
	}

	// Props and methods

}

Initial URL
http://ejohn.org/apps/learn/#36

Initial Description


Initial Title
Constructor Template

Initial Tags


Initial Language
JavaScript