Mercurial > js4py
view core-javascript/core-javascript-work/library.js @ 213:0ea90a1819c2 default tip
Custom theming
| author | Radomir Dopieralski <radomir.dopieralski@allegro.pl> |
|---|---|
| date | Wed, 27 Jun 2012 16:35:54 +0200 |
| parents | b774913eb242 |
| children |
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
