diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-13 22:05:07 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-20 14:27:58 -0400 |
commit | ba37ca9ea59149a87127a718432a899334cbb443 (patch) | |
tree | 3c26c877b783702b953039b457b37a09d07cca21 /demos | |
parent | a17180202d6fd7c137feba9ecc228554d44a7a7e (diff) | |
download | jquery-ui-ba37ca9ea59149a87127a718432a899334cbb443.tar.gz jquery-ui-ba37ca9ea59149a87127a718432a899334cbb443.zip |
Position: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'demos')
-rw-r--r-- | demos/position/cycler.html | 8 | ||||
-rw-r--r-- | demos/position/default.html | 2 |
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 |