mmhh. Und mein Contructor wird nicht wirklich aufgerufen. Ich rufe im Contructor der Superklasse eine init function auf, die nicht aufgerufen wird, wenn ich per: super.constructor.apply( super , arguments ); die SubKlasse ableite.
function A() { trace("A:" + arguments); this.init(); } A.prototype.init = function() { trace("init A"); }; function B() { super.constructor.apply(super, arguments); trace("B:" + arguments); } B.prototype.__proto__ = A.prototype; B.prototype.__constructor__ = A; obj = new B(1, 2, 3, 4, 5);
A:1,2,3,4,5 init A B:1,2,3,4,5
------------------------------------------------------------- Ralf Siegel - Freelance Developer Recommended Listening: Isobell Campell - Amorino (Snowstorm) http://www.isobelcampbell.com -------------------------------------------------------------
------------------------------------------------------ Archiv : //www.freelists.org/archives/ascoders/ Optionen : //www.freelists.org/list/ascoders ------------------------------------------------------