From b141d63a17a7f79b36ee9c9a0f1dd66493f3ef8e Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Thu, 1 Mar 2012 13:29:56 +0100 Subject: Update data naming for Slider. Partial fix for #7810 --- ui/jquery.ui.slider.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/jquery.ui.slider.js') diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index 29dca7c03..36075507e 100644 --- a/ui/jquery.ui.slider.js +++ b/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; -- cgit v1.2.3