aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-18 21:57:51 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-18 21:57:51 -0400
commitcb8474af1dc099de9e08665c9d6cdc2cf5864203 (patch)
tree565840fa6d66586d864cea9f52d58802781e130d /ui/jquery.ui.dialog.js
parent55e13692ee2937df9bda8e3348c4b07834e093d8 (diff)
downloadjquery-ui-cb8474af1dc099de9e08665c9d6cdc2cf5864203.tar.gz
jquery-ui-cb8474af1dc099de9e08665c9d6cdc2cf5864203.zip
Remove trailing whitespace.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 3a9bd5dc6..144cf9725 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -77,10 +77,10 @@ $.widget("ui.dialog", {
// #5742 - .attr() might return a DOMElement
if ( typeof this.originalTitle !== "string" ) {
this.originalTitle = "";
- }
- this.oldPosition = {
- parent: this.element.parent(),
- index: this.element.parent().children().index( this.element )
+ }
+ this.oldPosition = {
+ parent: this.element.parent(),
+ index: this.element.parent().children().index( this.element )
};
this.options.title = this.options.title || this.originalTitle;
var self = this,
@@ -171,7 +171,7 @@ $.widget("ui.dialog", {
},
_destroy: function() {
- var self = this, next,
+ var self = this, next,
oldPosition = this.oldPosition;
if ( self.overlay ) {
@@ -187,13 +187,13 @@ $.widget("ui.dialog", {
if ( self.originalTitle ) {
self.element.attr( "title", self.originalTitle );
}
-
+
next = oldPosition.parent.children().eq( oldPosition.index );
if ( next.length ) {
next.before( self.element );
} else {
oldPosition.parent.append( self.element );
- }
+ }
},
widget: function() {