From: Scott González Date: Mon, 23 Feb 2015 21:33:18 +0000 (-0500) Subject: Dialog: Fix typo X-Git-Tag: 1.11.4~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6997254f01c953d4f6d60b37057ca84f7f98856;p=jquery-ui.git Dialog: Fix typo Closes gh-1447 Thanks Spencer Davis (cherry picked from commit d95c23ae6c44e7d82289bb0a82eb1a7840a7a5f2) --- diff --git a/ui/dialog.js b/ui/dialog.js index d10b83657..d33f72c1e 100644 --- a/ui/dialog.js +++ b/ui/dialog.js @@ -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 );