From db49e185b0f6690365b63dc79581dc5200677c9d Mon Sep 17 00:00:00 2001 From: Dale Alexander Webb Date: Fri, 6 Nov 2015 13:08:56 +0000 Subject: [PATCH] chore(modal): wrapped `backdrop--` in a `if(options.backdrop)` --- src/modal/modal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modal/modal.js b/src/modal/modal.js index 87c2152d8..8b94d0562 100644 --- a/src/modal/modal.js +++ b/src/modal/modal.js @@ -197,8 +197,10 @@ angular.module('mgcrea.ngStrap.modal', ['mgcrea.ngStrap.core', 'mgcrea.ngStrap.h $modal.hide = function() { if(!$modal.$isShown) return; - // decrement number of modals - backdropCount--; + if(options.backdrop) { + // decrement number of modals + backdropCount--; + } if(scope.$emit(options.prefixEvent + '.hide.before', $modal).defaultPrevented) { return;