This is actually the method that is used to evaluate the reference=
expression in a handler tag. I think it is a bug that it is being
given a parameter list, since it is really just an expression whose
evaluation has to be delayed until run time. You should make this
change:
===================================================================
--- NodeModel.java (revision 8447)
+++ NodeModel.java (working copy)
@@ -1153,7 +1153,7 @@
referencename = "$lzc$" + "handle_" + event +
"_reference" + unique;
Object referencefn = new Function(
referencename,
- args,
+ "",
"\n#pragma 'withThis'\n" +
"return (" +
"#beginAttribute\n" +
I'm looking at how to automatically insert the overrides for the
setters...
On 2008-03-30, at 18:46 EDT, Henry Minsky wrote:
To get past the missing "override" on the setValue setter in checkbox
compoinent, I manually added "override" to the compiler-produced
as3 code,
and compiled it to see what further problems there are.
After needing to make LzKeys dynamic, to make the event sender
happy, I got
this error
[Fault] exception, information=ArgumentError: Error #1063: Argument
count
mismatch on
$lzc$class__componentmanager/$lzc$handle_onmode_reference$$base
$2Fcomponentmanager$2Elzx_195_69_$m5().
Expected 1, got 0.
Fault, __LZsetDelegates() at LzNode.as:476
476 var sender = sendermethodname != null ? this[sendermethodname]
() :
null;
Which is a line in LzNode.__LZsetDelegates which is executing this
code:
for ( var i = 0; i < l;i +=3 ){
var sendermethodname = delarr[i + 2];
var sender = (sendermethodname != null) ?
this[sendermethodname]() :
null;
if ( sender == null ) sender = this;
var meth = delarr[i + 1];
this.__LZdelegates.push( new LzDelegate( this , meth ,sender ,
delarr[i] ) );
}
I'm not sure what the argument these functions are expecting is, but
we need
to declare them with an optional arg
if we're going to call them with no args.
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]