[Laszlo-dev] For Review: Change change.7sdt5h8wX.txt Summary: Parse $style constraints
Henry Minsky
henry.minsky at gmail.com
Thu Aug 24 08:47:12 EDT 2006
approved
On 8/22/06, P T Withington <ptw at pobox.com> wrote:
>
> Change change.7sdt5h8wX.txt by ptw at tin-woodsman.local /Users/ptw/
> pending-changes/ on 2006-08-22 14:50:20 EDT
>
> Summary: Parse $style constraints
>
> New Features:
>
> <view height="$style{'height'}" width="$style{widthStyle}">
> <attribute name="widthStyle" value="'width'" />
> </view>
>
> will be parsed and generate an internal method `$style` with the
> following definition:
>
> function () { with (this) return {height: 'height', width:
> widthStyle}}
>
> which can be invoked by CSSApplyStyle to build the style map. Note
> that style constraints are expressions that will be evaluated in the
> instance's context, cf., the definition of width above.
>
> Bugs Fixed:
> [Ben: is there a bug number for this work?]
>
> Technical Reviewer: hminsky (pending)
> QA Reviewer: ben (pending)
> Doc Reviewer: adam (pending)
>
> Details:
> Add a new 'when' case `style`. Accumulate them in a map.
> Convert that map to a function that will return a Javascript hash
> representation of the map.
>
> Tests:
> Visually inspected the output of lzx --script
>
> Files:
> M src/org/openlaszlo/compiler/NodeModel.java
>
>
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060824/c0c8fa4a/attachment.html
More information about the Laszlo-dev
mailing list