PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/jsdoc-toolkit/app/test/functions_anon.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 39 lines | 18 code | 5 blank | 16 comment | 0 complexity | 20ea76bf3bf67a4c22c5551ae1196ad4 MD5 | raw file
 1/** an anonymous constructor executed inline */
 2a = new function() {
 3	/** a.b*/
 4    this.b = 1;
 5    /** a.f */
 6    this.f = function() {
 7    	/** a.c */
 8    	this.c = 2;
 9    }
10}
11
12
13/**
14	named function executed inline
15*/
16bar1 = function Zoola1() {
17	/** property of global */
18	this.g = 1;
19}();
20
21/**
22	named constructor executed inline
23*/
24bar2 = new function Zoola2() {
25	/** property of bar */
26	this.p = 1;
27};
28
29/** module pattern */
30module = (function () {
31	/** won't appear in documentation */
32	var priv = 1;
33	
34	/** @scope module */
35	return {
36		/** will appear as a property of module */
37		pub: 1
38	}
39})();