diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2015-08-19 05:22:46 +0300 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2015-08-19 05:22:46 +0300 |
commit | 18ff57a183ac141f70164be481ef703729bcdf0d (patch) | |
tree | 89c7c9204089f1c960ac25a56ff6588f797b451d /js/src/alert.js | |
parent | f1827e5f9c37e9a344a8f7dd8ed269e774e83fce (diff) |
js tests passing + eslint
Diffstat (limited to 'js/src/alert.js')
-rw-r--r-- | js/src/alert.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/alert.js b/js/src/alert.js index e58a311757..da4e5b6a54 100644 --- a/js/src/alert.js +++ b/js/src/alert.js @@ -86,8 +86,8 @@ const Alert = (($) => { // private _getRootElement(element) { - let parent = false let selector = Util.getSelectorFromElement(element) + let parent = false if (selector) { parent = $(selector)[0] @@ -101,7 +101,8 @@ const Alert = (($) => { } _triggerCloseEvent(element) { - var closeEvent = $.Event(Event.CLOSE) + let closeEvent = $.Event(Event.CLOSE) + $(element).trigger(closeEvent) return closeEvent } |