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
(cherry picked from commit d95c23a)
  • Loading branch information
scottgonzalez committed Mar 10, 2015
1 parent 0f99e9c commit d699725
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 @@ -229,10 +229,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 d699725

Please sign in to comment.