]> source.dussan.org Git - jquery-ui.git/commitdiff
Position: Remove core event/alias and deprecated module dependencies
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 14 May 2015 02:05:07 +0000 (22:05 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Wed, 20 May 2015 18:27:58 +0000 (14:27 -0400)
demos/position/cycler.html
demos/position/default.html
tests/visual/position/position.html
tests/visual/position/position_feedback.html

index 6bb9b9cea9aaf5b8c15805886471c0d2dfe8b817..f7e0b13024a2d08fda58b486f5bd0a3089287324 100644 (file)
                        right( $( "img:eq(1)" ), animate );
                        left( $( "img:eq(2)" ).prependTo( "#container" ) );
                }
-               $( "#previous" ).click( previous );
-               $( "#next" ).click( next );
+               $( "#previous" ).on( "click", previous );
+               $( "#next" ).on( "click", next );
 
-               $( "img" ).click(function( event ) {
+               $( "img" ).on( "click", function( event ) {
                        $( "img" ).index( this ) === 0 ? previous( event ) : next( event );
                });
 
-               $( window ).resize(function() {
+               $( window ).on( "resize", function() {
                        left( $( "img:eq(0)" ), animate );
                        center( $( "img:eq(1)" ), animate );
                        right( $( "img:eq(2)" ), animate );
index 71fc8a0fa6c9416a2e930c11aad94d9465ed7819..284653c9646cbb348815fe9d3bd293288c2e72dd 100644 (file)
@@ -54,7 +54,7 @@
 
                $( ".positionable" ).css( "opacity", 0.5 );
 
-               $( "select, input" ).bind( "click keyup change", position );
+               $( "select, input" ).on( "click keyup change", position );
 
                $( "#parent" ).draggable({
                        drag: position
index d9c7adb85df50ec175d76fe995f4afab74104aa1..70a9c40e53ff45f1f78d34c44173f31e894fc6b2 100644 (file)
                                drag: function() { position(); }
                        });
 
-                       $( "#within" ).click(function() {
+                       $( "#within" ).on( "click", function() {
                                within = within.is( ".demo" ) ? $( window ) : $( ".demo" );
                                position();
                        });
 
-                       $( "#margin" ).click(function() {
+                       $( "#margin" ).on( "click", function() {
                                positionable.toggleClass( "extra-margin" );
                                position();
                        });
 
-                       $( "select, input" ).bind( "click keyup change", function() { position(); } );
+                       $( "select, input" ).on( "click keyup change", function() { position(); } );
 
                        position();
                });
index 97682c628d8f82736bdd393559eaea9da869b5da..988451026083b2a0fc7f7cb6272e1b0e3e4f7485 100644 (file)
@@ -64,7 +64,7 @@
                                using: using
                        };
                };
-               $( document ).bind( "mousemove", function( event ) {
+               $( document ).on( "mousemove", function( event ) {
                        element.position( positionWithOffset(
                                event.pageX - targetOffset.left, event.pageY - targetOffset.top ) );
                        oppositeElement.position( positionWithOffset(