/tags/jsdoc_toolkit-2.4.0/jsdoc-toolkit/app/test/static_this.js

http://jsdoc-toolkit.googlecode.com/ · JavaScript · 13 lines · 7 code · 3 blank · 3 comment · 0 complexity · 33a439de0c2f2ba9e3b0e903a80c18c3 MD5 · raw file

  1. /** the parent */
  2. var box = {};
  3. /** @namespace */
  4. box.holder = {}
  5. box.holder.foo = function() {
  6. /** the counter */
  7. this.counter = 1;
  8. }
  9. box.holder.foo();
  10. print(box.holder.counter);