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