How do I overwrite the constructor of a superclass?

View: New views
1 Messages — Rating Filter:   Alert me  

How do I overwrite the constructor of a superclass?

by Robert Peterson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried the following, but both statements print. I need the subclass' constructor executed only.

            dojo.declare("Parent", null, {
                constructor: function() {console.debug("parent");}
            });
           
            dojo.declare("Child", Parent, {
                constructor: function() {console.debug("child");}
            });

            new Child();

--
http://juzzam.org

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest