Skip to content

Commit d7670b9

Browse files
committed
Dialog: Don't pass props to jQuery when creating buttons.
Thanks jitter.
1 parent cd7f10d commit d7670b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.dialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ $.widget("ui.dialog", {
376376
props = $.isFunction( props ) ?
377377
{ click: props, text: name } :
378378
props;
379-
var button = $('<button type="button"></button>', props)
379+
var button = $('<button type="button"></button>')
380+
.attr( props, true )
380381
.unbind('click')
381382
.click(function() {
382383
props.click.apply(self.element[0], arguments);

0 commit comments

Comments
 (0)