File: static_this.js

package info (click to toggle)
node-jsdoc2 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 708 kB
  • sloc: javascript: 4,319; xml: 279; makefile: 19; sh: 4
file content (13 lines) | stat: -rw-r--r-- 198 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
/** the parent */
var box = {};

/** @namespace */
box.holder = {}

box.holder.foo = function() {
	/** the counter */
	this.counter = 1;
}

box.holder.foo();
print(box.holder.counter);