diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-13 21:52:09 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-20 14:27:55 -0400 |
commit | b240eed81b96c9c4128ca5682d876fbc6f96a9c4 (patch) | |
tree | 5796ea8800d0e9a8a7acb64bf43d3830bc1e8902 /demos/accordion | |
parent | ad98cb167350b8d929b71bfeefc904c8964893dd (diff) | |
download | jquery-ui-b240eed81b96c9c4128ca5682d876fbc6f96a9c4.tar.gz jquery-ui-b240eed81b96c9c4128ca5682d876fbc6f96a9c4.zip |
Accordion: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'demos/accordion')
-rw-r--r-- | demos/accordion/custom-icons.html | 2 | ||||
-rw-r--r-- | demos/accordion/hoverintent.html | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index 91ca4543a..9d43c3c8b 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -19,7 +19,7 @@ $( "#accordion" ).accordion({ icons: icons }); - $( "#toggle" ).button().click(function() { + $( "#toggle" ).button().on( "click", function() { if ( $( "#accordion" ).accordion( "option", "icons" ) ) { $( "#accordion" ).accordion( "option", "icons", null ); } else { diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html index dce8a8f0c..ad15721f3 100644 --- a/demos/accordion/hoverintent.html +++ b/demos/accordion/hoverintent.html @@ -23,10 +23,10 @@ */ $.event.special.hoverintent = { setup: function() { - $( this ).bind( "mouseover", jQuery.event.special.hoverintent.handler ); + $( this ).on( "mouseover", jQuery.event.special.hoverintent.handler ); }, teardown: function() { - $( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler ); + $( this ).off( "mouseover", jQuery.event.special.hoverintent.handler ); }, handler: function( event ) { var currentX, currentY, timeout, @@ -42,8 +42,8 @@ function clear() { target - .unbind( "mousemove", track ) - .unbind( "mouseout", clear ); + .off( "mousemove", track ) + .off( "mouseout", clear ); clearTimeout( timeout ); } @@ -75,7 +75,7 @@ } timeout = setTimeout( handler, 100 ); - target.bind({ + target.on({ mousemove: track, mouseout: clear }); |