<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>
<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");
_setOption: function( key, value ) {
if ( key === "value" ) {
- return this._setOptionValue( value );
+ return this._value( value );
}
this._super( "_setOption", key, value );
}
},
- _setOptionValue: function( value ) {
- var previous = this.options.value;
- this._value( value );
- if ( previous !== this.options.value ) {
- this._trigger( "change" );
- }
- },
-
_setOptions: modifier(function( options ) {
this._super( "_setOptions", options );
_value: function( value ) {
this.options.value = this._trimValue( this._parse(value) );
this._format();
+ this._aria();
},
destroy: function() {