PageRenderTime 16ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/tags/jsdoc_toolkit-1.3.3/test/data/nested_funcs.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 25 lines | 14 code | 2 blank | 9 comment | 0 complexity | e10478847f5830e30aa57355143c0189 MD5 | raw file
 1/**
 2 @class
 3*/
 4Foo = function(id) {
 5	// this is a bit twisted, but if you call Foo() you will then
 6	// modify Foo(). This is kinda, sorta non-insane, because you
 7	// would have to call Foo() 100% of the time to use Foo's methods
 8	Foo.prototype.methodOne = function(bar) {
 9	  alert(bar);
10	};
11	
12	// same again
13	Foo.prototype.methodTwo = function(bar2) {
14	  alert(bar2);
15	};
16	
17	// and these are only executed if the enclosing function is actually called
18	// and who knows if that will ever happen?
19	Bar = function(pez) {
20	  alert(pez);
21	};
22	Zop.prototype.zap = function(p){
23		alert(p);
24	}
25};