Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools/jsdoc-toolkit/app/test/borrows2.js
blob: c0d5ea21f45637d1391ec373579202f3b2ef4871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// testing circular borrows

/**
	@class
	@borrows Bar#zop as this.my_zop
*/
function Foo() {
	/** this is a zip. */
	this.zip = function() {}
	
	this.my_zop = new Bar().zop;
}

/**
	@class
	@borrows Foo#zip as this.my_zip
*/
function Bar() {
	/** this is a zop. */
	this.zop = function() {}
	
	this.my_zip = new Foo().zip;
}