From: Scott González Date: Fri, 1 Oct 2010 15:18:17 +0000 (-0400) Subject: Dialog: Don't pass props to jQuery when creating buttons. X-Git-Tag: 1.8.6~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d7670b94076ac9e17db6f00963c7f8187213be2d;p=jquery-ui.git Dialog: Don't pass props to jQuery when creating buttons. Thanks jitter. --- 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 = $('', props) + var button = $('') + .attr( props, true ) .unbind('click') .click(function() { props.click.apply(self.element[0], arguments);