[Laszlo-dev] Setting constraints on a newed object
Adam Wolff
adam at laszlosystems.com
Tue Jul 19 10:16:31 PDT 2005
obj._heightfun = function (){this.setAttribute( "height" , parent.width );};
new LzDelegate( obj, "_heightfun", obj.parent, "onwidth" );
I think that this'll leak if you destroy obj. If you need to fix that,
then you need to also write a destroy method that unregisters your
delegate.
A
On Jul 19, Andrew McClain wrote:
> What's the best way to set up constraints on a javascript-created object?
>
> e.g. convert <LZClass height="40" width="${parent.width}" /> into javascript
>
> var obj = new LZClass(this, {height: 40});
>
> ... then what?
>
>
> andrew
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
More information about the Laszlo-dev
mailing list