aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/position/cycler.html8
-rw-r--r--demos/position/default.html2
-rw-r--r--tests/visual/position/position.html6
-rw-r--r--tests/visual/position/position_feedback.html2
4 files changed, 9 insertions, 9 deletions
diff --git a/demos/position/cycler.html b/demos/position/cycler.html
index 6bb9b9cea..f7e0b1302 100644
--- a/demos/position/cycler.html
+++ b/demos/position/cycler.html
@@ -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 );
diff --git a/demos/position/default.html b/demos/position/default.html
index 71fc8a0fa..284653c96 100644
--- a/demos/position/default.html
+++ b/demos/position/default.html
@@ -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
diff --git a/tests/visual/position/position.html b/tests/visual/position/position.html
index d9c7adb85..70a9c40e5 100644
--- a/tests/visual/position/position.html
+++ b/tests/visual/position/position.html
@@ -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();
});
diff --git a/tests/visual/position/position_feedback.html b/tests/visual/position/position_feedback.html
index 97682c628..988451026 100644
--- a/tests/visual/position/position_feedback.html
+++ b/tests/visual/position/position_feedback.html
@@ -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(