/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
- // 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;
- }