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

DateSpinner.minuteStepSize short circuits too soon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • Mobile: DateSpinner
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Look at the source code for DateSpinner.minuteStepSize setter
      2.
      3.

      Actual Results:

      The short circuit is first

      public function set minuteStepSize(value:int):void

      { if (value == _minuteStepSize) return; if (value <= 0 || 60 % value != 0) value = 1; _minuteStepSize = value; minuteStepSizeChanged = true; populateMinuteDataProvider = true; invalidateProperties(); }

      Expected Results:

      The short circuit should be after the invalid value adjustment

      public function set minuteStepSize(value:int):void

      { if (value <= 0 || 60 % value != 0) value = 1; if (value == _minuteStepSize) return; _minuteStepSize = value; minuteStepSizeChanged = true; populateMinuteDataProvider = true; invalidateProperties(); }

      Workaround (if any):

      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: