thirdparty/jsdoctoolkit/app/test/functions_anon.js
author Mario Ferraro <fadinlight@gmail.com>
Sun, 15 Nov 2009 22:12:20 +0100
changeset 3093 d1be59b6b627
parent 3041 c8f47f0b6697
permissions -rw-r--r--
GMaps related JS changed to use new google namespace. Google is going to change permanently in the future the way to load its services, so better stay safe. Also this commit shows uses of the new melange.js module. Fixes Issue 634.

/** an anonymous constructor executed inline */
a = new function() {
	/** a.b*/
    this.b = 1;
    /** a.f */
    this.f = function() {
    	/** a.c */
    	this.c = 2;
    }
}


/**
	named function executed inline
*/
bar1 = function Zoola1() {
	/** property of global */
	this.g = 1;
}();

/**
	named constructor executed inline
*/
bar2 = new function Zoola2() {
	/** property of bar */
	this.p = 1;
};

/** module pattern */
module = (function () {
	/** won't appear in documentation */
	var priv = 1;
	
	/** @scope module */
	return {
		/** will appear as a property of module */
		pub: 1
	}
})();