diff options
Diffstat (limited to 'js/dist/alert.js')
-rw-r--r-- | js/dist/alert.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/dist/alert.js b/js/dist/alert.js index 1ef0241724..0a3807b4ea 100644 --- a/js/dist/alert.js +++ b/js/dist/alert.js @@ -52,9 +52,11 @@ var Alert = function ($) { // Public _proto.close = function close(element) { - element = element || this._element; + var rootElement = this._element; - var rootElement = this._getRootElement(element); + if (element) { + rootElement = this._getRootElement(element); + } var customEvent = this._triggerCloseEvent(rootElement); |