mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Don't pass props to jQuery when creating buttons.
Thanks jitter.
This commit is contained in:
parent
cd7f10d480
commit
d7670b9407
3
ui/jquery.ui.dialog.js
vendored
3
ui/jquery.ui.dialog.js
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user