From: Jörn Zaefferer Date: Thu, 1 Mar 2012 12:29:56 +0000 (+0100) Subject: Update data naming for Slider. Partial fix for #7810 X-Git-Tag: 1.9m7~22^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b141d63a17a7f79b36ee9c9a0f1dd66493f3ef8e;p=jquery-ui.git Update data naming for Slider. Partial fix for #7810 --- 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;