Skip to content

Commit

Permalink
dialog - fixed context of button callbacks should be DOMElement, not …
Browse files Browse the repository at this point in the history
…jQuery object
  • Loading branch information
rdworth committed Jun 8, 2008
1 parent 0132665 commit fa7409b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.dialog.js
Expand Up @@ -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);
});
}
Expand Down

0 comments on commit fa7409b

Please sign in to comment.