Skip to content
Permalink
Browse files

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

Thanks jitter.
  • Loading branch information
scottgonzalez committed Oct 1, 2010
1 parent cd7f10d commit d7670b94076ac9e17db6f00963c7f8187213be2d
Showing with 2 additions and 1 deletion.
  1. +2 −1 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);

0 comments on commit d7670b9

Please sign in to comment.
You can’t perform that action at this time.