mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-30 16:47:58 -05:00
dialog - fixed context of button callbacks should be DOMElement, not jQuery object
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user