Dialog: Fix typo

Closes gh-1447

Thanks Spencer Davis
(cherry picked from commit d95c23ae6c)
This commit is contained in:
Scott González 2015-02-23 16:33:18 -05:00
parent 0f99e9c969
commit d6997254f0

View File

@ -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 );