Skip to content
Permalink
Browse files

dialog - fixed context of button callbacks should be DOMElement, not …

…jQuery object
  • Loading branch information
rdworth committed Jun 8, 2008
1 parent 0132665 commit fa7409b28bf0a4ab9b505a6b0da511a116729084
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.dialog.js
@@ -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);
});
}

0 comments on commit fa7409b

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