Dialog: Don't pass props to jQuery when creating buttons.

Thanks jitter.
This commit is contained in:
Scott González 2010-10-01 11:18:17 -04:00
parent cd7f10d480
commit d7670b9407

View File

@ -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);