/trunk/jsdoc-toolkit/app/test/prototype_oblit_constructor.js
http://jsdoc-toolkit.googlecode.com/ · JavaScript · 24 lines · 15 code · 5 blank · 4 comment · 0 complexity · 1286e68417d4c0763e7a8b33c94d4696 MD5 · raw file
- /** @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);