Skip to content

Commit

Permalink
Dialog: Fix typo
Browse files Browse the repository at this point in the history
Closes gh-1447

Thanks Spencer Davis
  • Loading branch information
scottgonzalez committed Feb 23, 2015
1 parent 8fdfea5 commit d95c23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ return $.widget( "ui.dialog", {

_moveToTop: function( event, silent ) {
var moved = false,
zIndicies = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
zIndices = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
return +$( this ).css( "z-index" );
}).get(),
zIndexMax = Math.max.apply( null, zIndicies );
zIndexMax = Math.max.apply( null, zIndices );

if ( zIndexMax >= +this.uiDialog.css( "z-index" ) ) {
this.uiDialog.css( "z-index", zIndexMax + 1 );
Expand Down

0 comments on commit d95c23a

Please sign in to comment.