Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils/jsdoc-toolkit/app/test/prototype.js
diff options
context:
space:
mode:
Diffstat (limited to 'utils/jsdoc-toolkit/app/test/prototype.js')
-rw-r--r--utils/jsdoc-toolkit/app/test/prototype.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/jsdoc-toolkit/app/test/prototype.js b/utils/jsdoc-toolkit/app/test/prototype.js
new file mode 100644
index 0000000..1147008
--- /dev/null
+++ b/utils/jsdoc-toolkit/app/test/prototype.js
@@ -0,0 +1,17 @@
+/** @constructor */
+function Article() {
+}
+
+Article.prototype.init = function(title) {
+ /** the instance title */
+ this.title = title;
+
+ /** the static counter */
+ Article.counter = 1;
+}
+
+a = new Article();
+a.Init("my title");
+
+print(a.title);
+print(Article.counter); \ No newline at end of file