Skip to content

Commit f94aad2

Browse files
committed
Button: Add comment about filtering for performance
1 parent 144d213 commit f94aad2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/button.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
var formResetHandler = function() {
3333
var form = $( this );
3434
setTimeout(function() {
35+
// We find .ui-button first then filer by :ui-button because doing a
36+
// widget pseudo selectors are very very slow but we need to filter out
37+
// css only buttons
3538
form.find( ".ui-button" ).filter( ":ui-button" ).button( "refresh" );
3639
});
3740
};

0 commit comments

Comments
 (0)