[Laszlo-dev] delegates *must* have an argument?
Sarah Allen
sarah at ultrasaurus.com
Thu Mar 19 07:45:58 PDT 2009
So, I've got this code...
<method name="_activateTimeDel">
//Debug.write("mediastream._activeTimeDel()", this);
if (!this._timedel) {
this._timedel = new LzDelegate(this, "_updateTime");
}
this._timedel.unregisterAll();
this._timedel.register(lz.Idle, "onidle");
</method>
I had noticed that _updateTime had an unused (and undocumented)
argument 'v' which I removed to make the code cleaner and clearer.
However, in the swf9 runtime, I learn that delegates *must* be
declared with an argument:
WARNING: Invalid delegate: mediastream name: ms._updateTime =>
Function (must accept one argument)
So, I go look up in the reference to see what the argument is and find
no mention of it. Is this a doc omission?
just curious... for now, I'll just put back the mysterious 'v'
Sarah
More information about the Laszlo-dev
mailing list