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

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

http://jsdoc-toolkit.googlecode.com/
JavaScript | 23 lines | 8 code | 4 blank | 11 comment | 0 complexity | 6ce5efe40d47b84ff52137c741d441be MD5 | raw file
 1// testing circular borrows
 2
 3/**
 4	@class
 5	@borrows Bar#zop as this.my_zop
 6*/
 7function Foo() {
 8	/** this is a zip. */
 9	this.zip = function() {}
10	
11	this.my_zop = new Bar().zop;
12}
13
14/**
15	@class
16	@borrows Foo#zip as this.my_zip
17*/
18function Bar() {
19	/** this is a zop. */
20	this.zop = function() {}
21	
22	this.my_zip = new Foo().zip;
23}