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 /ui | |
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 'ui')
-rw-r--r-- | ui/jquery.ui.spinner.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index 6004f0bc6..71f6a2332 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -287,7 +287,7 @@ $.widget( "ui.spinner", { _setOption: function( key, value ) { if ( key === "value" ) { - return this._setOptionValue( value ); + return this._value( value ); } this._super( "_setOption", key, value ); @@ -303,14 +303,6 @@ $.widget( "ui.spinner", { } }, - _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 ); @@ -342,6 +334,7 @@ $.widget( "ui.spinner", { _value: function( value ) { this.options.value = this._trimValue( this._parse(value) ); this._format(); + this._aria(); }, destroy: function() { |