aboutsummaryrefslogtreecommitdiff
path: root/tools/jsdoc-toolkit-2.4.0/app/test/prototype_oblit_constructor.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/jsdoc-toolkit-2.4.0/app/test/prototype_oblit_constructor.js')
-rw-r--r--tools/jsdoc-toolkit-2.4.0/app/test/prototype_oblit_constructor.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/jsdoc-toolkit-2.4.0/app/test/prototype_oblit_constructor.js b/tools/jsdoc-toolkit-2.4.0/app/test/prototype_oblit_constructor.js
new file mode 100644
index 0000000..9248248
--- /dev/null
+++ b/tools/jsdoc-toolkit-2.4.0/app/test/prototype_oblit_constructor.js
@@ -0,0 +1,24 @@
+/** @constructor */
+function Article() {
+}
+
+Article.prototype = {
+ /** @constructor */
+ Title: function(title) {
+ /** the value of the Title instance */
+ this.title = title;
+ },
+
+ init: function(pages) {
+ /** the value of the pages of the Article instance */
+ this.pages = pages;
+ }
+}
+
+f = new Article();
+f.init("one two three");
+
+t = new f.Title("my title");
+
+print(f.pages);
+print(t.title); \ No newline at end of file