Update data naming for Slider. Partial fix for #7810

This commit is contained in:
Jörn Zaefferer 2012-03-01 13:29:56 +01:00
parent 98daa6af84
commit b141d63a17

View File

@ -110,12 +110,12 @@ $.widget( "ui.slider", $.ui.mouse, {
}); });
this.handles.each(function( i ) { this.handles.each(function( i ) {
$( this ).data( "index.ui-slider-handle", i ); $( this ).data( "ui-slider-handle-index", i );
}); });
this.handles this.handles
.keydown(function( event ) { .keydown(function( event ) {
var index = $( this ).data( "index.ui-slider-handle" ), var index = $( this ).data( "ui-slider-handle-index" ),
allowed, allowed,
curVal, curVal,
newVal, newVal,
@ -185,7 +185,7 @@ $.widget( "ui.slider", $.ui.mouse, {
self._slide( event, index, newVal ); self._slide( event, index, newVal );
}) })
.keyup(function( event ) { .keyup(function( event ) {
var index = $( this ).data( "index.ui-slider-handle" ); var index = $( this ).data( "ui-slider-handle-index" );
if ( self._keySliding ) { if ( self._keySliding ) {
self._keySliding = false; self._keySliding = false;