thirdparty/jsdoctoolkit/app/test/borrows2.js
changeset 3041 c8f47f0b6697
equal deleted inserted replaced
3040:8f9580309846 3041:c8f47f0b6697
       
     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 }