Skip to content

Commit a034903

Browse files
committed
Dialog: Don't override title option on init.
1 parent d3303c1 commit a034903

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/ui.dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ $.widget("ui.dialog", {
3131

3232
_init: function() {
3333
this.originalTitle = this.element.attr('title');
34-
this.options.title = this.options.title || this.originalTitle;
3534

3635
var self = this,
3736
options = this.options,
3837

39-
title = options.title || ' ',
38+
title = options.title || this.originalTitle || ' ',
4039
titleId = $.ui.dialog.getTitleId(this.element),
4140

4241
uiDialog = (this.uiDialog = $('<div/>'))
@@ -487,6 +486,7 @@ $.extend($.ui.dialog, {
487486
position: 'center',
488487
resizable: true,
489488
stack: true,
489+
title: '',
490490
width: 300,
491491
zIndex: 1000
492492
},

0 commit comments

Comments
 (0)