aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-15 23:12:54 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-26 10:28:22 +0100
commitf0acaac230b70b3754ef3aabe8fc90f23fbb6a88 (patch)
tree6df64fa6873fe5edfe4d76379d0a688970e0a66c /ui/jquery.ui.dialog.js
parent7a0353500a5e57bf2c02333c92dd0b16d457a624 (diff)
downloadjquery-ui-f0acaac230b70b3754ef3aabe8fc90f23fbb6a88.tar.gz
jquery-ui-f0acaac230b70b3754ef3aabe8fc90f23fbb6a88.zip
Dialog: Refactor uiDialogTitlebar variable, use this.uiDialogTitlebar instead. Wasn't needed anymore (previous refactorings).
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 24fada479..60bcca0c6 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -93,8 +93,6 @@ $.widget("ui.dialog", {
var that = this,
options = this.options,
title = options.title || "&#160;",
- // TODO should use this.uiDialogTitlebar instead
- uiDialogTitlebar,
uiDialogTitle,
uiDialogButtonPane;
@@ -124,11 +122,11 @@ $.widget("ui.dialog", {
.addClass( "ui-dialog-content ui-widget-content" )
.appendTo( this.uiDialog );
- // TODO extract this and the next three into a _createTitlebar method
- uiDialogTitlebar = ( this.uiDialogTitlebar = $( "<div>" ) )
+ // TODO extract this and the next two into a _createTitlebar method
+ this.uiDialogTitlebar = $( "<div>" )
.addClass( "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" )
.prependTo( this.uiDialog );
- this._on( uiDialogTitlebar, {
+ this._on( this.uiDialogTitlebar, {
mousedown: function() {
// TODO call _focusTabbable or _keepFocus
// Dialog isn't getting focus when dragging (#8063)
@@ -149,13 +147,13 @@ $.widget("ui.dialog", {
event.preventDefault();
that.close( event );
})
- .appendTo( uiDialogTitlebar );
+ .appendTo( this.uiDialogTitlebar );
uiDialogTitle = $( "<span>" )
.uniqueId()
.addClass( "ui-dialog-title" )
.html( title )
- .prependTo( uiDialogTitlebar );
+ .prependTo( this.uiDialogTitlebar );
// TODO extract this one and the next into a _createButtonPane method
uiDialogButtonPane = ( this.uiDialogButtonPane = $( "<div>" ) )