]> source.dussan.org Git - jquery-ui.git/commitdiff
Slider: Remove core event/alias and deprecated module dependencies
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 14 May 2015 02:01:09 +0000 (22:01 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Wed, 20 May 2015 18:27:56 +0000 (14:27 -0400)
demos/slider/hotelrooms.html
tests/unit/slider/options.js
ui/slider.js

index e5ee79c55a03169c011154d48ebf41ad41a4b939..0268d1dc0db6de50936d7ad0225f5515793bf8d3 100644 (file)
@@ -22,7 +22,7 @@
                                select[ 0 ].selectedIndex = ui.value - 1;
                        }
                });
-               $( "#minbeds" ).change(function() {
+               $( "#minbeds" ).on( "change", function() {
                        slider.slider( "value", this.selectedIndex + 1 );
                });
        });
index 8e43c3e8970c81ba59ee3c87aa3369047706ad27..02d7f8891c9c9fa67f08f321c84a5dbda75cb7ab 100644 (file)
@@ -16,7 +16,7 @@ test( "disabled", function( assert ){
        var count = 0;
 
        element = $( "#slider1" ).slider();
-       element.bind( "slidestart", function() {
+       element.on( "slidestart", function() {
                count++;
        });
 
index 131f93fb0693d22dd38786dca4391dd4bd7a769f..830c1cbd7d20027d26c30414212589333c5b289b 100644 (file)
@@ -214,7 +214,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
                this._handleIndex = index;
 
                this._addClass( closestHandle, null, "ui-state-active" );
-               closestHandle.focus();
+               closestHandle.trigger( "focus" );
 
                offset = closestHandle.offset();
                mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );