diff -r 97599ff43072 -r 46e21d060650 sbin/res/app/test/prototype.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbin/res/app/test/prototype.js Fri Dec 23 10:59:23 2011 +0100 @@ -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