mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Position: Remove core event/alias and deprecated module dependencies
This commit is contained in:
parent
a17180202d
commit
ba37ca9ea5
@ -71,14 +71,14 @@
|
|||||||
right( $( "img:eq(1)" ), animate );
|
right( $( "img:eq(1)" ), animate );
|
||||||
left( $( "img:eq(2)" ).prependTo( "#container" ) );
|
left( $( "img:eq(2)" ).prependTo( "#container" ) );
|
||||||
}
|
}
|
||||||
$( "#previous" ).click( previous );
|
$( "#previous" ).on( "click", previous );
|
||||||
$( "#next" ).click( next );
|
$( "#next" ).on( "click", next );
|
||||||
|
|
||||||
$( "img" ).click(function( event ) {
|
$( "img" ).on( "click", function( event ) {
|
||||||
$( "img" ).index( this ) === 0 ? previous( event ) : next( event );
|
$( "img" ).index( this ) === 0 ? previous( event ) : next( event );
|
||||||
});
|
});
|
||||||
|
|
||||||
$( window ).resize(function() {
|
$( window ).on( "resize", function() {
|
||||||
left( $( "img:eq(0)" ), animate );
|
left( $( "img:eq(0)" ), animate );
|
||||||
center( $( "img:eq(1)" ), animate );
|
center( $( "img:eq(1)" ), animate );
|
||||||
right( $( "img:eq(2)" ), animate );
|
right( $( "img:eq(2)" ), animate );
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
$( ".positionable" ).css( "opacity", 0.5 );
|
$( ".positionable" ).css( "opacity", 0.5 );
|
||||||
|
|
||||||
$( "select, input" ).bind( "click keyup change", position );
|
$( "select, input" ).on( "click keyup change", position );
|
||||||
|
|
||||||
$( "#parent" ).draggable({
|
$( "#parent" ).draggable({
|
||||||
drag: position
|
drag: position
|
||||||
|
@ -54,17 +54,17 @@
|
|||||||
drag: function() { position(); }
|
drag: function() { position(); }
|
||||||
});
|
});
|
||||||
|
|
||||||
$( "#within" ).click(function() {
|
$( "#within" ).on( "click", function() {
|
||||||
within = within.is( ".demo" ) ? $( window ) : $( ".demo" );
|
within = within.is( ".demo" ) ? $( window ) : $( ".demo" );
|
||||||
position();
|
position();
|
||||||
});
|
});
|
||||||
|
|
||||||
$( "#margin" ).click(function() {
|
$( "#margin" ).on( "click", function() {
|
||||||
positionable.toggleClass( "extra-margin" );
|
positionable.toggleClass( "extra-margin" );
|
||||||
position();
|
position();
|
||||||
});
|
});
|
||||||
|
|
||||||
$( "select, input" ).bind( "click keyup change", function() { position(); } );
|
$( "select, input" ).on( "click keyup change", function() { position(); } );
|
||||||
|
|
||||||
position();
|
position();
|
||||||
});
|
});
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
using: using
|
using: using
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
$( document ).bind( "mousemove", function( event ) {
|
$( document ).on( "mousemove", function( event ) {
|
||||||
element.position( positionWithOffset(
|
element.position( positionWithOffset(
|
||||||
event.pageX - targetOffset.left, event.pageY - targetOffset.top ) );
|
event.pageX - targetOffset.left, event.pageY - targetOffset.top ) );
|
||||||
oppositeElement.position( positionWithOffset(
|
oppositeElement.position( positionWithOffset(
|
||||||
|
Loading…
Reference in New Issue
Block a user