TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to .LzEventable.
        at 
$lzc$class_style/extend()[/Users/hqm/openlaszlo/lib/jakarta-tomcat-5.0.30/temp/lzswf9/lzgen26457/$lzc$class_style.as:88]
        at 
$lzc$class_basecomponent/setStyle()[/Users/hqm/openlaszlo/lib/jakarta-tomcat-5.0.30/temp/lzswf9/lzgen26457/$lzc$class_basecomponent.as:99]
        at 
$lzc$class_basecomponent/$lzc$set_style()[/Users/hqm/openlaszlo/lib/jakarta-tomcat-5.0.30/temp/lzswf9/lzgen26457/$lzc$class_basecomponent.as:86]
        at 
LzEventable/setAttribute()[/private/tmp/lzswf9/lzgen38234/LzEventable.as:23]
        at 
$lzc$class_button_left1/$lzc$bind_style$left1_$m234()[/Users/hqm/openlaszlo/lib/jakarta-tomcat-5.0.30/temp/lzswf9/lzgen26457/$lzc$class_button_left1.as:4]
        

The code in question is in the extend() method on the class 'style'

    <!--- returns a new lz.style object which is based on this one
        with only specified attributes modified
        <br/>param dictionary args: the attributes for the new lz.style
    -->
    <method name="extend" args="args">
        var temp = {};
        for (var p in args) {
            temp[p] = args[p];
        }
        temp.__proto__ = this;

        new LzDelegate(temp, '_forwardstylechanged', this, 'onstylechanged');
        return temp;
    </method>


So, what's this trying to accomplish? Can we instantiate a proper
style object? Was this trying to save
the cost of a real class instance instantiation time?

-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to