]> source.dussan.org Git - jquery-ui.git/commitdiff
dialog - fixed context of button callbacks should be DOMElement, not jQuery object
authorRichard Worth <rdworth@gmail.com>
Sun, 8 Jun 2008 02:49:54 +0000 (02:49 +0000)
committerRichard Worth <rdworth@gmail.com>
Sun, 8 Jun 2008 02:49:54 +0000 (02:49 +0000)
ui/ui.dialog.js

index a1496dbdc1cc8e68b4bc3e5b6696de0555947565..03875240e065f253b8fc8d335ba6c05167a24974 100644 (file)
@@ -106,7 +106,7 @@ $.widget("ui.dialog", {
                        $.each(options.buttons, function(name, fn) {
                                $('<button/>')
                                        .text(name)
-                                       .click(function() { fn.apply(self.element, arguments); })
+                                       .click(function() { fn.apply(self.element[0], arguments); })
                                        .appendTo(uiDialogButtonPane);
                        });
                }