Skip to content

Escaping Curly Braces for String literals in mxml #110

@greg-dove

Description

@greg-dove

Support escaping curly braces to allow curly braces in string literal assignments in mxml
Flex permits the following:
<s:Label text="\{entry\}" />

where 'entry' is a local [Bindable] property
and the text will not create a binding, and will simply be interpreted as a string literal assigment.

Royale has a bug where the same code will create a binding, returning a string literal, something like the following:

function() { return "\\{entry\\"; },
  null,
  ["$ID27", "text"]

Aside from being unnecessary, that also results in the wrong content being displayed (because it retains the backslashes, and omits the second curly brace)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions