]> source.dussan.org Git - jquery-ui.git/commitdiff
Update data naming for Slider. Partial fix for #7810
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 1 Mar 2012 12:29:56 +0000 (13:29 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 1 Mar 2012 12:29:56 +0000 (13:29 +0100)
ui/jquery.ui.slider.js

index 29dca7c0368586e362b62c54035bba7b0fade8cc..36075507e6d5421bb5780765542e32e539097fc5 100644 (file)
@@ -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;