aboutsummaryrefslogtreecommitdiffstats
path: root/demos/position
diff options
context:
space:
mode:
Diffstat (limited to 'demos/position')
-rw-r--r--demos/position/cycler.html8
-rw-r--r--demos/position/default.html2
2 files changed, 5 insertions, 5 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