diff options
Diffstat (limited to 'tools/jsdoc-toolkit-2.4.0/app/test/static_this.js')
-rw-r--r-- | tools/jsdoc-toolkit-2.4.0/app/test/static_this.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/jsdoc-toolkit-2.4.0/app/test/static_this.js b/tools/jsdoc-toolkit-2.4.0/app/test/static_this.js new file mode 100644 index 0000000..9407b20 --- /dev/null +++ b/tools/jsdoc-toolkit-2.4.0/app/test/static_this.js @@ -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); |