--- Benoit Marchant <[EMAIL PROTECTED]> wrote:
> > function MyClass2(){}
> > var p= dynapi.setPrototype('MyClass2','MyClass1');
> > dynapi.overwrite('MyClass2','setSize');
> > p.setSize=function(w,h){
> > this.superSetSize(w,h);
> > // will the above superSetSize be DynLayer's or
> > MyClas
See my comments bellow
On Friday, April 4, 2003, at 02:25 PM, Raymond Irving wrote:
Please see below:
--- Benoit Marchant <[EMAIL PROTECTED]> wrote:
I would prefer
I prefer the syntax super.setSize(w,h).
What about adding
DynAPIObject.prototype.overwrite = function(sC,n) {
var c = this.f
Please see below:
--- Benoit Marchant <[EMAIL PROTECTED]> wrote:
> I would prefer
> I prefer the syntax super.setSize(w,h).
>
> What about adding
>
> DynAPIObject.prototype.overwrite = function(sC,n) {
> var c = this.frame[sC];
> var superMethod =
> c.prototype._superPrototype[n];
>
This is a very good idea. See bellow my feedback
On Friday, April 4, 2003, at 07:03 AM, Raymond Irving wrote:
Hi,
I've been thinking about creating an easier way to
subclass/overwrite methods:
DynObject.prototype.subclass = function(n,fn){
if(!this._sbCls) this._sbCls=1;
var om = '_sbMethod'+
Hi,
I've been thinking about creating an easier way to
subclass/overwrite methods:
DynObject.prototype.subclass = function(n,fn){
if(!this._sbCls) this._sbCls=1;
var om = '_sbMethod'+(this._sbCls++); // old method
eval('fn='+(fn+'').replace(/\~subclass\(/g,'this.'+om+'('));