From d95c23ae6c44e7d82289bb0a82eb1a7840a7a5f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 23 Feb 2015 16:33:18 -0500 Subject: [PATCH] Dialog: Fix typo Closes gh-1447 Thanks Spencer Davis --- ui/dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/dialog.js b/ui/dialog.js index 8381443ae..150449b41 100644 --- a/ui/dialog.js +++ b/ui/dialog.js @@ -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 ); -- 2.39.5