From 12df1b7dad135aa57640be631277db3f7d75d672 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 13 May 2015 21:54:37 -0400 Subject: Button: Remove core event/alias and deprecated module dependencies --- demos/button/default.html | 2 +- demos/button/splitbutton.html | 4 ++-- demos/button/toolbar.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'demos/button') diff --git a/demos/button/default.html b/demos/button/default.html index 8c1690969..1bd4f9191 100644 --- a/demos/button/default.html +++ b/demos/button/default.html @@ -13,7 +13,7 @@ $(function() { $( "input[type=submit], a, button" ) .button() - .click(function( event ) { + .on( "click", function( event ) { event.preventDefault(); }); }); diff --git a/demos/button/splitbutton.html b/demos/button/splitbutton.html index 441e0a912..333d54bd7 100644 --- a/demos/button/splitbutton.html +++ b/demos/button/splitbutton.html @@ -18,7 +18,7 @@ $(function() { $( "#rerun" ) .button() - .click(function() { + .on( "click", function() { alert( "Running the last action" ); }) .next() @@ -28,7 +28,7 @@ primary: "ui-icon-triangle-1-s" } }) - .click(function() { + .on( "click", function() { var menu = $( this ).parent().next().show().position({ my: "left top", at: "left bottom", diff --git a/demos/button/toolbar.html b/demos/button/toolbar.html index e2eac055c..e13b4a1d1 100644 --- a/demos/button/toolbar.html +++ b/demos/button/toolbar.html @@ -35,7 +35,7 @@ primary: "ui-icon-play" } }) - .click(function() { + .on( "click", function() { var options; if ( $( this ).text() === "play" ) { options = { @@ -60,7 +60,7 @@ primary: "ui-icon-stop" } }) - .click(function() { + .on( "click", function() { $( "#play" ).button( "option", { label: "play", icons: { -- cgit v1.2.3