can generate jsdoc; private methods marked as such
[dygraphs.git] / jsdoc-toolkit / app / test / static_this.js
diff --git a/jsdoc-toolkit/app/test/static_this.js b/jsdoc-toolkit/app/test/static_this.js
new file mode 100644 (file)
index 0000000..9407b20
--- /dev/null
@@ -0,0 +1,13 @@
+/** the parent */
+var box = {};
+
+/** @namespace */
+box.holder = {}
+
+box.holder.foo = function() {
+       /** the counter */
+       this.counter = 1;
+}
+
+box.holder.foo();
+print(box.holder.counter);