diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-08-07 12:38:01 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-08-07 12:38:01 -0400 |
commit | 6c84531d7ced59fc3b884aa11845c7016d4187aa (patch) | |
tree | 92d79c609e87077ff0faf0543ceee4adeb1f4658 /demos/spinner/default.html | |
parent | 6c9dac29a5594df7d08d722580d739fb734b2311 (diff) | |
download | jquery-ui-6c84531d7ced59fc3b884aa11845c7016d4187aa.tar.gz jquery-ui-6c84531d7ced59fc3b884aa11845c7016d4187aa.zip |
Spinner: Fixed double firing of change event when setting the value option directly.
Diffstat (limited to 'demos/spinner/default.html')
-rw-r--r-- | demos/spinner/default.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/spinner/default.html b/demos/spinner/default.html index 35445a0e1..53fd81bf5 100644 --- a/demos/spinner/default.html +++ b/demos/spinner/default.html @@ -6,6 +6,7 @@ <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> <script type="text/javascript" src="../../jquery-1.6.2.js"></script> <script type="text/javascript" src="../../external/jquery.mousewheel-3.0.4.js"></script> + <script type="text/javascript" src="../../external/jquery.global.js"></script> <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script> <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> <script type="text/javascript" src="../../ui/jquery.ui.button.js"></script> @@ -13,7 +14,11 @@ <link type="text/css" href="../demos.css" rel="stylesheet" /> <script type="text/javascript"> $(function() { - $("#spinner").spinner(); + $("#spinner").spinner({ + change: function() { + console.log( "change" ); + } + }); $("#disable").toggle(function() { $("#spinner").spinner("disable"); |