PrivateBin/jsdoc_toolkit-2.3.3-beta/app/test/static_this.js

14 lines
185 B
JavaScript
Raw Normal View History

2010-05-27 06:34:42 +08:00
/** the parent */
var box = {};
/** @namespace */
box.holder = {}
box.holder.foo = function() {
/** the counter */
this.counter = 1;
}
box.holder.foo();
print(box.holder.counter);