From c6b47c7a0f8f974c4e2f143ca691a40294c2db49 Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 17 Jun 2015 14:02:08 -0400 Subject: [PATCH] Reuse some code --- src/definitions/modules/modal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index 673a5f9da..8c44f34f8 100644 --- a/src/definitions/modules/modal.js +++ b/src/definitions/modules/modal.js @@ -322,8 +322,7 @@ $.fn.modal = function(parameters) { module.set.type(); module.set.clickaway(); - if( !settings.allowMultiple && $otherModals.filter('.' + className.active).length > 0) { - module.debug('Other modals visible, queueing show animation'); + if( !settings.allowMultiple && module.others.active() ) { module.hideOthers(module.showModal); } else {