]> 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>
Tue, 10 Mar 2015 16:25:59 +0000 (12:25 -0400)
Closes gh-1447

Thanks Spencer Davis
(cherry picked from commit d95c23ae6c44e7d82289bb0a82eb1a7840a7a5f2)

ui/dialog.js

index d10b836572d1411f0a70226f6f297f6cb54a32ef..d33f72c1e920f6362da5dc8d005916ee5a10dcc7 100644 (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 );