Hi there,
Currently, the following inheritance mechanism is fails:
function Base() {}
function Derived() {
Base.call(this);
}
Which is unfortunate because it's the simplest way to inherit, without
having to deal with .prototypes, caja.def, or anything else.
The error is "Constructors can't be called as simple functions." Is
there no way to allow these calls to go through in a restricted form,
so that:
a) The Base object is statically determined to be a user constructor.
b) The "this" passed in is statically determined to come from a user
object which is currently constructing.
?
Thanks!
Al.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
http://groups.google.com/group/google-caja-discuss
To unsubscribe, email [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---