Skip to content

Commit 5e935ea

Browse files
committed
Dialog: Don't use $.attrFn since it's empty in jQuery 1.8.0. Fixes #8484 - Text of buttons in dialog is not shown with jquery 1.8.0.
1 parent b92965a commit 5e935ea

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,6 @@ var uiDialogClasses =
3737
maxWidth: true,
3838
minHeight: true,
3939
minWidth: true
40-
},
41-
// support for jQuery 1.3.2 - handle common attrFn methods for dialog
42-
attrFn = $.attrFn || {
43-
val: true,
44-
css: true,
45-
html: true,
46-
text: true,
47-
data: true,
48-
width: true,
49-
height: true,
50-
offset: true,
51-
click: true
5240
};
5341

5442
$.widget("ui.dialog", {
@@ -397,7 +385,7 @@ $.widget("ui.dialog", {
397385
if ( key === "click" ) {
398386
return;
399387
}
400-
if ( key in attrFn ) {
388+
if ( key in button ) {
401389
button[ key ]( value );
402390
} else {
403391
button.attr( key, value );

0 commit comments

Comments
 (0)