diff options
author | Johann-S <johann.servoire@gmail.com> | 2017-08-27 01:57:27 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-02-20 23:05:45 +0300 |
commit | 6b5850212e0c3a9f5f82d22eda0f6240d01f2f5a (patch) | |
tree | d5eaa375d745dbcea74831670dcf208902fdf423 /js/src/alert.js | |
parent | b69fa9db95aa3454b59260ce099f33f07797ea6c (diff) |
Second element of find and findOne should be optional, not the first one
Diffstat (limited to 'js/src/alert.js')
-rw-r--r-- | js/src/alert.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/alert.js b/js/src/alert.js index d23c4659c0..1bdd9706a4 100644 --- a/js/src/alert.js +++ b/js/src/alert.js @@ -84,7 +84,7 @@ class Alert { let parent = false if (selector) { - parent = SelectorEngine.find(selector)[0] + parent = SelectorEngine.findOne(selector) } if (!parent) { |