Results 1 to 2 of 2

Thread: BUG: Slider.js throws TypeError exception

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-991 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    6
    Vote Rating
    0
      0  

    Default BUG: Slider.js throws TypeError exception

    REQUIRED INFORMATION


    Ext version tested:
    • Sencha Touch 2.0.0-pr1


    Browser versions tested against:
    • Chrome

    DOCTYPE tested against:
    • ____


    Description:
    • Slider.js line#458, function setThumbsDisabled() contains a bug. The current code reads "thumbs = me.thumbs", while should be "thumbs = me.getThumbs()", as everywhere else in code around. As result, thumbs is null and the next line "... = thumbs.length" throws TypeError exception


    Steps to reproduce the problem:
    • Create a form containing single child item with xtype="togglefield"
    • Try disabling the item in initialize()
    • See TypeError exception thrown


    The result that was expected:
    • Slider.js line #458, function setThumbsDisabled() : thimbs = me.getThumbs()


    The result that occurs instead:
    • Slider.js line #458, function setThumbsDisabled() : thimbs = me.thumbs


    Test Case:

    Code:
        <<insert working code to reproduce the report >>


    HELPFUL INFORMATION


    Screenshot or Video:
    • attached


    See this URL for live test case: http://


    Debugging already done:
    • yes


    Possible fix:
    • see above


    Additional CSS used:
    • only default ext-all.css


    Operating System:

    • WinXP Pro

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    Thank you for the report.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •