PDA

View Full Version : [FIXED] BUG: Slider.js throws TypeError exception



alex.k
7 Nov 2011, 8:54 AM
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:



<<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

Jamie Avins
7 Nov 2011, 9:09 AM
Thank you for the report.