diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-08-10 09:28:56 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-10 09:28:56 -0400 |
commit | 5e935ead9fbfb0ab368a9828a4d4b8d17eb38d5c (patch) | |
tree | fc7f9d20fd7ef41610fd976fae1ff2d8366481b5 | |
parent | b92965a78121534c113b1d717a75cee728548520 (diff) | |
download | jquery-ui-5e935ead9fbfb0ab368a9828a4d4b8d17eb38d5c.tar.gz jquery-ui-5e935ead9fbfb0ab368a9828a4d4b8d17eb38d5c.zip |
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.
-rw-r--r-- | ui/jquery.ui.dialog.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 3d32468b5..b91131f61 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -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 ); |