aboutsummaryrefslogtreecommitdiffstats
path: root/demos/spinner
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-05-13 22:01:44 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-05-20 14:27:56 -0400
commit89bf0d057bc9ec552b042a997501e094e95da543 (patch)
treebdb5023f4df056eddd43052b5224ebfedbfc47ac /demos/spinner
parentd157b59a511be306f32f8d5a84b575961013ebd0 (diff)
downloadjquery-ui-89bf0d057bc9ec552b042a997501e094e95da543.tar.gz
jquery-ui-89bf0d057bc9ec552b042a997501e094e95da543.zip
Spinner: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'demos/spinner')
-rw-r--r--demos/spinner/currency.html2
-rw-r--r--demos/spinner/decimal.html2
-rw-r--r--demos/spinner/default.html8
-rw-r--r--demos/spinner/time.html2
4 files changed, 7 insertions, 7 deletions
diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html
index b39a431c5..0509e80a0 100644
--- a/demos/spinner/currency.html
+++ b/demos/spinner/currency.html
@@ -16,7 +16,7 @@
<link rel="stylesheet" href="../demos.css">
<script>
$(function() {
- $( "#currency" ).change(function() {
+ $( "#currency" ).on( "change", function() {
$( "#spinner" ).spinner( "option", "culture", $( this ).val() );
});
diff --git a/demos/spinner/decimal.html b/demos/spinner/decimal.html
index d321f0312..6c3df9439 100644
--- a/demos/spinner/decimal.html
+++ b/demos/spinner/decimal.html
@@ -21,7 +21,7 @@
numberFormat: "n"
});
- $( "#culture" ).change(function() {
+ $( "#culture" ).on( "change", function() {
var current = $( "#spinner" ).spinner( "value" );
Globalize.culture( $(this).val() );
$( "#spinner" ).spinner( "value", current );
diff --git a/demos/spinner/default.html b/demos/spinner/default.html
index 9486422fc..328d4d13c 100644
--- a/demos/spinner/default.html
+++ b/demos/spinner/default.html
@@ -15,24 +15,24 @@
$(function() {
var spinner = $( "#spinner" ).spinner();
- $( "#disable" ).click(function() {
+ $( "#disable" ).on( "click", function() {
if ( spinner.spinner( "option", "disabled" ) ) {
spinner.spinner( "enable" );
} else {
spinner.spinner( "disable" );
}
});
- $( "#destroy" ).click(function() {
+ $( "#destroy" ).on( "click", function() {
if ( spinner.spinner( "instance" ) ) {
spinner.spinner( "destroy" );
} else {
spinner.spinner();
}
});
- $( "#getvalue" ).click(function() {
+ $( "#getvalue" ).on( "click", function() {
alert( spinner.spinner( "value" ) );
});
- $( "#setvalue" ).click(function() {
+ $( "#setvalue" ).on( "click", function() {
spinner.spinner( "value", 5 );
});
diff --git a/demos/spinner/time.html b/demos/spinner/time.html
index 2a527e42b..229b0e6b4 100644
--- a/demos/spinner/time.html
+++ b/demos/spinner/time.html
@@ -41,7 +41,7 @@
$(function() {
$( "#spinner" ).timespinner();
- $( "#culture" ).change(function() {
+ $( "#culture" ).on( "change", function() {
var current = $( "#spinner" ).timespinner( "value" );
Globalize.culture( $(this).val() );
$( "#spinner" ).timespinner( "value", current );