Skip to content

Commit ba37ca9

Browse files
committed
Position: Remove core event/alias and deprecated module dependencies
1 parent a171802 commit ba37ca9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

demos/position/cycler.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@
7171
right( $( "img:eq(1)" ), animate );
7272
left( $( "img:eq(2)" ).prependTo( "#container" ) );
7373
}
74-
$( "#previous" ).click( previous );
75-
$( "#next" ).click( next );
74+
$( "#previous" ).on( "click", previous );
75+
$( "#next" ).on( "click", next );
7676

77-
$( "img" ).click(function( event ) {
77+
$( "img" ).on( "click", function( event ) {
7878
$( "img" ).index( this ) === 0 ? previous( event ) : next( event );
7979
});
8080

81-
$( window ).resize(function() {
81+
$( window ).on( "resize", function() {
8282
left( $( "img:eq(0)" ), animate );
8383
center( $( "img:eq(1)" ), animate );
8484
right( $( "img:eq(2)" ), animate );

demos/position/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
$( ".positionable" ).css( "opacity", 0.5 );
5656

57-
$( "select, input" ).bind( "click keyup change", position );
57+
$( "select, input" ).on( "click keyup change", position );
5858

5959
$( "#parent" ).draggable({
6060
drag: position

tests/visual/position/position.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@
5454
drag: function() { position(); }
5555
});
5656

57-
$( "#within" ).click(function() {
57+
$( "#within" ).on( "click", function() {
5858
within = within.is( ".demo" ) ? $( window ) : $( ".demo" );
5959
position();
6060
});
6161

62-
$( "#margin" ).click(function() {
62+
$( "#margin" ).on( "click", function() {
6363
positionable.toggleClass( "extra-margin" );
6464
position();
6565
});
6666

67-
$( "select, input" ).bind( "click keyup change", function() { position(); } );
67+
$( "select, input" ).on( "click keyup change", function() { position(); } );
6868

6969
position();
7070
});

tests/visual/position/position_feedback.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
using: using
6565
};
6666
};
67-
$( document ).bind( "mousemove", function( event ) {
67+
$( document ).on( "mousemove", function( event ) {
6868
element.position( positionWithOffset(
6969
event.pageX - targetOffset.left, event.pageY - targetOffset.top ) );
7070
oppositeElement.position( positionWithOffset(

0 commit comments

Comments
 (0)