aboutsummaryrefslogtreecommitdiff
path: root/tools/jsdoc-toolkit-2.4.0/app/test/functions_anon.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/jsdoc-toolkit-2.4.0/app/test/functions_anon.js')
-rw-r--r--tools/jsdoc-toolkit-2.4.0/app/test/functions_anon.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/tools/jsdoc-toolkit-2.4.0/app/test/functions_anon.js b/tools/jsdoc-toolkit-2.4.0/app/test/functions_anon.js
new file mode 100644
index 0000000..e9dd6c1
--- /dev/null
+++ b/tools/jsdoc-toolkit-2.4.0/app/test/functions_anon.js
@@ -0,0 +1,39 @@
+/** an anonymous constructor executed inline */
+a = new function() {
+ /** a.b*/
+ this.b = 1;
+ /** a.f */
+ this.f = function() {
+ /** a.c */
+ this.c = 2;
+ }
+}
+
+
+/**
+ named function executed inline
+*/
+bar1 = function Zoola1() {
+ /** property of global */
+ this.g = 1;
+}();
+
+/**
+ named constructor executed inline
+*/
+bar2 = new function Zoola2() {
+ /** property of bar */
+ this.p = 1;
+};
+
+/** module pattern */
+module = (function () {
+ /** won't appear in documentation */
+ var priv = 1;
+
+ /** @scope module */
+ return {
+ /** will appear as a property of module */
+ pub: 1
+ }
+})();