diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-10-01 11:18:17 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-01 11:19:24 -0400 |
commit | d7670b94076ac9e17db6f00963c7f8187213be2d (patch) | |
tree | 7b73d5eeba28bf8cf7fc2e06ddd6ddb01ea525cd /ui/jquery.ui.dialog.js | |
parent | cd7f10d480c923d095af6cbd844cbbdb5bb3813e (diff) | |
download | jquery-ui-d7670b94076ac9e17db6f00963c7f8187213be2d.tar.gz jquery-ui-d7670b94076ac9e17db6f00963c7f8187213be2d.zip |
Dialog: Don't pass props to jQuery when creating buttons.
Thanks jitter.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index f7d441894..86dfa5fa1 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -376,7 +376,8 @@ $.widget("ui.dialog", { props = $.isFunction( props ) ? { click: props, text: name } : props; - var button = $('<button type="button"></button>', props) + var button = $('<button type="button"></button>') + .attr( props, true ) .unbind('click') .click(function() { props.click.apply(self.element[0], arguments); |