Skip to content
Permalink
Browse files

Update data naming for Slider. Partial fix for #7810

  • Loading branch information...
jzaefferer committed Mar 1, 2012
1 parent 98daa6a commit b141d63a17a7f79b36ee9c9a0f1dd66493f3ef8e
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.slider.js
@@ -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;

0 comments on commit b141d63

Please sign in to comment.
You can’t perform that action at this time.