-
14 Apr 2010 12:18 PM #1
[FIXED] MultiSlider beforechange event does not indicate which thumb changed
[FIXED] MultiSlider beforechange event does not indicate which thumb changed
In MultiSlider.js, the following code appears in setValue():
It does not indicate the thumb that is being changing unlike the code in the change event. It needs to be modified to read:Code:if (v !== thumb.value && this.fireEvent('beforechange', this, v, thumb.value) !== false) { thumb.value = v; .....
if (v !== thumb.value && this.fireEvent('beforechange', this, v, thumb.value, thumb) !== false)
-
14 Apr 2010 12:47 PM #2Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
Makes sense - this is now present in svn and will be part of 3.2.1 and later
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
-
14 Apr 2010 9:36 PM #3
This is one of the reasons why a switch to using an EventObject would be very nice.
Not backwards compatible, and a huge upheaval, but I'd make the changes in my app.
Just look at the way the arguments list to various events have grown organically. If all events just injected properties into an object that would future proof event handling.
Maybe the fire method which calls the handler could test and call the handler in either way depending on a setting.
It could unpack the event object's properties as separate args if the old version is being used?
I know this is unlikely to change, but just thought I'd mention it.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
14 Apr 2010 10:03 PM #4
It would be nice, I suggested it a few years ago, however I think it would just end up breaking way too much code.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
15 Apr 2010 12:11 PM #5
-
16 Apr 2010 2:14 PM #6Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote
