diff options
author | Richard Worth <rdworth@gmail.com> | 2008-06-08 02:49:54 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-06-08 02:49:54 +0000 |
commit | fa7409b28bf0a4ab9b505a6b0da511a116729084 (patch) | |
tree | 23b78d399523598ba71d7ba0450d8376051b497e /ui | |
parent | 0132665f176d13a219e4a4deb9cbc9f40f90647d (diff) | |
download | jquery-ui-fa7409b28bf0a4ab9b505a6b0da511a116729084.tar.gz jquery-ui-fa7409b28bf0a4ab9b505a6b0da511a116729084.zip |
dialog - fixed context of button callbacks should be DOMElement, not jQuery object
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index a1496dbdc..03875240e 100644 --- a/ui/ui.dialog.js +++ b/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); }); } |