mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Update data naming for Slider. Partial fix for #7810
This commit is contained in:
parent
98daa6af84
commit
b141d63a17
6
ui/jquery.ui.slider.js
vendored
6
ui/jquery.ui.slider.js
vendored
@ -110,12 +110,12 @@ $.widget( "ui.slider", $.ui.mouse, {
|
||||
});
|
||||
|
||||
this.handles.each(function( i ) {
|
||||
$( this ).data( "index.ui-slider-handle", i );
|
||||
$( this ).data( "ui-slider-handle-index", i );
|
||||
});
|
||||
|
||||
this.handles
|
||||
.keydown(function( event ) {
|
||||
var index = $( this ).data( "index.ui-slider-handle" ),
|
||||
var index = $( this ).data( "ui-slider-handle-index" ),
|
||||
allowed,
|
||||
curVal,
|
||||
newVal,
|
||||
@ -185,7 +185,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
||||
self._slide( event, index, newVal );
|
||||
})
|
||||
.keyup(function( event ) {
|
||||
var index = $( this ).data( "index.ui-slider-handle" );
|
||||
var index = $( this ).data( "ui-slider-handle-index" );
|
||||
|
||||
if ( self._keySliding ) {
|
||||
self._keySliding = false;
|
||||
|
Loading…
Reference in New Issue
Block a user