Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Button: Refactored formResetHandler and fixed scope. Foxes #7261 - Re…

…fresh scope in formResetHandler unintentionally wide.

(cherry picked from commit e0fafbb)
  • Loading branch information...
commit c45dd91f1b25a9edb8e168acf58e7224c46e0182 1 parent 3124864
@scottgonzalez scottgonzalez authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 ui/jquery.ui.button.js
View
12 ui/jquery.ui.button.js
@@ -17,13 +17,11 @@ var lastActive, startXPos, startYPos, clickDragged,
baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
stateClasses = "ui-state-hover ui-state-active ",
typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",
- formResetHandler = function( event ) {
- $( ":ui-button", event.target.form ).each(function() {
- var inst = $( this ).data( "button" );
- setTimeout(function() {
- inst.refresh();
- }, 1 );
- });
+ formResetHandler = function() {
+ var buttons = $( this ).find( ":ui-button" );
+ setTimeout(function() {
+ buttons.button( "refresh" );
+ }, 1 );
},
radioGroup = function( radio ) {
var name = radio.name,
Please sign in to comment.
Something went wrong with that request. Please try again.