mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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.
This commit is contained in:
parent
b92965a781
commit
5e935ead9f
14
ui/jquery.ui.dialog.js
vendored
14
ui/jquery.ui.dialog.js
vendored
@ -37,18 +37,6 @@ var uiDialogClasses =
|
||||
maxWidth: true,
|
||||
minHeight: true,
|
||||
minWidth: true
|
||||
},
|
||||
// support for jQuery 1.3.2 - handle common attrFn methods for dialog
|
||||
attrFn = $.attrFn || {
|
||||
val: true,
|
||||
css: true,
|
||||
html: true,
|
||||
text: true,
|
||||
data: true,
|
||||
width: true,
|
||||
height: true,
|
||||
offset: true,
|
||||
click: true
|
||||
};
|
||||
|
||||
$.widget("ui.dialog", {
|
||||
@ -397,7 +385,7 @@ $.widget("ui.dialog", {
|
||||
if ( key === "click" ) {
|
||||
return;
|
||||
}
|
||||
if ( key in attrFn ) {
|
||||
if ( key in button ) {
|
||||
button[ key ]( value );
|
||||
} else {
|
||||
button.attr( key, value );
|
||||
|
Loading…
Reference in New Issue
Block a user