Skip to content
Permalink
Browse files

Dialog: Tiny code improvements

  • Loading branch information...
jzaefferer committed Nov 16, 2012
1 parent e3dcaf2 commit d8b98ec3bb077224aff381101e6d845ea6ffe7a3
Showing with 4 additions and 2 deletions.
  1. +4 −2 ui/jquery.ui.dialog.js
@@ -209,7 +209,9 @@ $.widget("ui.dialog", {

this._size();
this._position( this.options.position );
this.overlay = this.options.modal ? new $.ui.dialog.overlay( this ) : null;
if ( this.options.modal ) {
this.overlay = new $.ui.dialog.overlay( this );
}
this._moveToTop( null, true );
this._show( this.uiDialog, this.options.show );

@@ -277,7 +279,7 @@ $.widget("ui.dialog", {
if ( event.keyCode !== $.ui.keyCode.TAB ) {
return;
}
var tabbables = $( ":tabbable", this.uiDialog ),
var tabbables = this.uiDialog.find( ":tabbable" ),
first = tabbables.filter( ":first" ),
last = tabbables.filter( ":last" );

0 comments on commit d8b98ec

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