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

commitOnly is not obeyed in BindingUtils.bindSetter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Later
    • Affects Version/s: Adobe Flex SDK Previous
    • Fix Version/s: None
    • Component/s: Data Binding
    • Labels:
      None
    • Environment:
      Affected OS(s): Mac
      Affected OS(s): Mac OS 10.6
      Language Found: English

      Description

      bindSetter sends the current value of the destination to the setter handler even when commitOnly is set to true.

      Requested change:

      if( !commitOnly )
      invoke(null);

      New Full Method:

      public static function bindSetter(setter:Function, host:Object,
      chain:Object,
      commitOnly:Boolean = false,
      useWeakReference:Boolean = false):ChangeWatcher
      {
      var w:ChangeWatcher =
      ChangeWatcher.watch(host, chain, null, commitOnly, useWeakReference);

      if (w != null)
      {
      var invoke:Function = function(event:*):void

      { setter(w.getValue()); }

      ;
      w.setHandler(invoke);

      if( !commitOnly )
      invoke(null);
      }

      return w;
      }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: