[Laszlo-user] constraints and method-calls
P T Withington
ptw at pobox.com
Fri Mar 7 12:30:36 PST 2008
Constraints are groovy, but costly. So are delegates though. The
most programmatic way to do this is to create a setter for
parent.forminput.text that also updates mytext.text. I.e., replace a
delegate with a function call.
On 2008-03-07, at 12:50 EST, Elliot Winard wrote:
> Oops. Itchy trigger finger.
>
> I'm refactoring a chunk of LZX code to make it less declarative and
> LZXy and more programmatic and ECMAScripty.
>
> I was going to ask about the mechanics of dependency functions but I
> decided to just change the code I'm working on to *not* use
> functions wherever possible. Basically, I turned stuff like this -
> <text name="mytext"
> text="$
> { LzBrowser.xmlEscape( parent.forminput.getText() ) }" />
> - into this -
> <text name="mytext"
> text="$
> { LzBrowser.xmlEscape( parent.forminput.text) }" />
> - and then replaced the constraint with methods & delegates &
> altogether.
>
> Thx,
> -e
>
>
> Elliot Winard wrote:
>> I'm refactoring a chunk of declarative LZX code so it's
>>
>>
>>
>>
>>
More information about the Laszlo-user
mailing list