]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Don't pass props to jQuery when creating buttons.
authorScott González <scott.gonzalez@gmail.com>
Fri, 1 Oct 2010 15:18:17 +0000 (11:18 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 1 Oct 2010 15:19:24 +0000 (11:19 -0400)
Thanks jitter.

ui/jquery.ui.dialog.js

index f7d441894eeef6134d287a5f7b87b4aaed8d518b..86dfa5fa1ee41655251e8f12ebbad78cbb6a1700 100644 (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);