PrivateBin/jsdoc_toolkit-2.3.3-beta/app/test/static_this.js
2010-05-26 15:34:42 -07:00

14 lines
185 B
JavaScript

/** the parent */
var box = {};
/** @namespace */
box.holder = {}
box.holder.foo = function() {
/** the counter */
this.counter = 1;
}
box.holder.foo();
print(box.holder.counter);