From d7670b94076ac9e17db6f00963c7f8187213be2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 1 Oct 2010 11:18:17 -0400 Subject: [PATCH] Dialog: Don't pass props to jQuery when creating buttons. Thanks jitter. --- ui/jquery.ui.dialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5