ctrlv-privatebin/jsdoc_toolkit-2.3.3-beta/app/test/static_this.js

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);