From: Scott González Date: Tue, 20 Jan 2009 21:57:00 +0000 (+0000) Subject: Dialog: Don't override title option on init. X-Git-Tag: 1.6rc6~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a03490323322ac5d3365052d412b852413cf444f;p=jquery-ui.git Dialog: Don't override title option on init. --- diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 0489844f2..69ca3205c 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -31,12 +31,11 @@ $.widget("ui.dialog", { _init: function() { this.originalTitle = this.element.attr('title'); - this.options.title = this.options.title || this.originalTitle; var self = this, options = this.options, - title = options.title || ' ', + title = options.title || this.originalTitle || ' ', titleId = $.ui.dialog.getTitleId(this.element), uiDialog = (this.uiDialog = $('
')) @@ -487,6 +486,7 @@ $.extend($.ui.dialog, { position: 'center', resizable: true, stack: true, + title: '', width: 300, zIndex: 1000 },