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 );
|
||||
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 );
|
||||
|
@ -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
|
||||
|
@ -54,17 +54,17 @@
|
||||
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();
|
||||
});
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user