diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index b8f908487..13b69a7fb 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -324,7 +324,7 @@ $.widget("ui.dialog", {
if (hasButtons) {
uiDialogButtonPane.show();
$.each(buttons, function(name, fn) {
- $('')
+ $('')
.text(name)
.click(function() { fn.apply(self.element[0], arguments); })
.appendTo(uiDialogButtonPane);