From 6c84531d7ced59fc3b884aa11845c7016d4187aa Mon Sep 17 00:00:00 2001 From: Scott González Date: Sun, 7 Aug 2011 12:38:01 -0400 Subject: Spinner: Fixed double firing of change event when setting the value option directly. --- ui/jquery.ui.spinner.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'ui') 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() { -- cgit v1.2.3