diff options
author | Rogan Creswick <creswick@galois.com> | 2012-03-30 17:07:02 -0700 |
---|---|---|
committer | Rogan Creswick <creswick@galois.com> | 2012-03-30 17:07:02 -0700 |
commit | f6ab6622aab00fe7c2f4c3dc41f786ebbe0f0d73 (patch) | |
tree | 870111038542cd27153e1396ebdc063573249689 /tools/jsdoc-toolkit-2.4.0/app/test/static_this.js |
initial revision
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); |