| changeset 1072 | ac1eacb3aa33 |
| parent 1071 | 02c04d2c8fd8 |
| child 1073 | 687133dc13cf |
| 1071:02c04d2c8fd8 | 1072:ac1eacb3aa33 |
|---|---|
1 // testing circular borrows |
|
2 |
|
3 /** |
|
4 @class |
|
5 @borrows Bar#zop as this.my_zop |
|
6 */ |
|
7 function 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 */ |
|
18 function Bar() { |
|
19 /** this is a zop. */ |
|
20 this.zop = function() {} |
|
21 |
|
22 this.my_zip = new Foo().zip; |
|
23 } |