Position: Remove core event/alias and deprecated module dependencies

This commit is contained in:
Alexander Schmitz 2015-05-13 22:05:07 -04:00
parent a17180202d
commit ba37ca9ea5
4 changed files with 9 additions and 9 deletions

View File

@ -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 );

View 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

View File

@ -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();
});

View 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(