aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-07 09:57:18 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-07 09:57:18 -0400
commit650fe5c5db7fb46b7ad3296f99dcb82b312f4284 (patch)
tree4c22743100ac8662fa86323159c42ca0b0330e54
parentcab4c467d9c12ec61a652c3bf68eedd166319b34 (diff)
downloadjquery-ui-650fe5c5db7fb46b7ad3296f99dcb82b312f4284.tar.gz
jquery-ui-650fe5c5db7fb46b7ad3296f99dcb82b312f4284.zip
Dialog: Removed trailing whitespace.
-rw-r--r--ui/jquery.ui.dialog.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 45ee37789..7eaf89cbd 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -716,17 +716,17 @@ $.extend( $.ui.dialog.overlay, {
// handle window resize
$( window ).bind( "resize.dialog-overlay", $.ui.dialog.overlay.resize );
}
-
+
var $el = ( this.oldInstances.pop() || $( "<div>" ).addClass( "ui-widget-overlay" ) );
-
+
// allow closing by pressing the escape key
$( document ).bind( "keydown.dialog-overlay", function( event ) {
- var instances = $.ui.dialog.overlay.instances;
- // only react to the event if we're the top overlay
- if ( instances.length !== 0 && instances[ instances.length - 1 ] === $el &&
+ var instances = $.ui.dialog.overlay.instances;
+ // only react to the event if we're the top overlay
+ if ( instances.length !== 0 && instances[ instances.length - 1 ] === $el &&
dialog.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
event.keyCode === $.ui.keyCode.ESCAPE ) {
-
+
dialog.close( event );
event.preventDefault();
}