Skip to content
Permalink
Browse files

Dialog: Removed trailing whitespace.

  • Loading branch information
scottgonzalez committed May 7, 2012
1 parent cab4c46 commit 650fe5c5db7fb46b7ad3296f99dcb82b312f4284
Showing with 6 additions and 6 deletions.
  1. +6 −6 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();
}

0 comments on commit 650fe5c

Please sign in to comment.
You can’t perform that action at this time.