Mercurial > js4py
view core-javascript/core-javascript-work/library.js @ 150:5118d0e38ba4 core-javascript-latex
$ hg merge core-javascript # into core-javascript-latex
| author | jf3243 |
|---|---|
| date | Tue, 01 Nov 2011 08:58:38 +0000 |
| parents | 20d76c716c9d |
| children | b774913eb242 |
line wrap: on
line source
// start create var create = function(parent){ var tmp = function(){}; tmp.prototype = parent; var child = new tmp(); return child; }; // end create // start SimpleClass var SimpleClass = function(prototype){ var cls = function(){ var instance = create(prototype); instance.__init__.apply(instance, arguments); return instance; }; return cls; }; // end SimpleClass
