From b4b0c7e72d7eaee2fbfc7022022c9698323203dd Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 31 Dec 2009 13:16:41 +0000 Subject: import rt 3.8.7 --- rt/share/html/NoAuth/js/class.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 rt/share/html/NoAuth/js/class.js (limited to 'rt/share/html/NoAuth/js/class.js') diff --git a/rt/share/html/NoAuth/js/class.js b/rt/share/html/NoAuth/js/class.js new file mode 100644 index 000000000..b823c693a --- /dev/null +++ b/rt/share/html/NoAuth/js/class.js @@ -0,0 +1,15 @@ +/* by TKirby, released under GPL */ + + function _ClassSetup(Object) { + this.prototype = Object; + return this; + } + + function Class(name) { + var _newclass_; + eval("window."+name+" = new Function('this."+name+".apply(this,arguments);');"); + eval("window."+name+".define = _ClassSetup;"); + eval("_newclass_ = window."+name+";"); + return _newclass_; + } + -- cgit v1.2.1