Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-27200

SkinnableDataContainer.updateRender sets the data variable unnecessarily causing unnecessary screen updates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.5 (Release)
    • None
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      I'm working with Flex 4.5.0.20427.

      The last conditional in SkinnableDataContainer.updateRenderer is:

      // always set the data last
      if ((renderer is IDataRenderer) && (renderer !== data))
      IDataRenderer(renderer).data = data;

      I expect the author intended:

      // always set the data last
      if ((renderer is IDataRenderer) && (renderer.data !== data))
      IDataRenderer(renderer).data = data;

      In my use case this results in lots of extra updates to items in a container due to the event sent by the data setter.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: