]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Fix typo
authorScott González <scott.gonzalez@gmail.com>
Mon, 23 Feb 2015 21:33:18 +0000 (16:33 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 23 Feb 2015 21:33:18 +0000 (16:33 -0500)
Closes gh-1447

Thanks Spencer Davis

ui/dialog.js

index 8381443aec68f94b4a3d92dc518e285a1175bcd3..150449b413c20d795cf821fb0848e6db991cd6a1 100644 (file)
@@ -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 );