diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-03-06 16:15:01 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-03-06 16:15:01 +0100 |
commit | 394678381bcd6f6bf6550719e80814962da01578 (patch) | |
tree | 2cb5fe1a69ff436507616e6f9c28ded5612694a1 /app | |
parent | 77d0de9102e8956f805cd7c52a48684d0b621dc7 (diff) | |
download | gitlab-ce-394678381bcd6f6bf6550719e80814962da01578.tar.gz |
Fix no out element case
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/behaviors/bind_in_out.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/behaviors/bind_in_out.js b/app/assets/javascripts/behaviors/bind_in_out.js index 1cc0fc750b5..42e4640b84d 100644 --- a/app/assets/javascripts/behaviors/bind_in_out.js +++ b/app/assets/javascripts/behaviors/bind_in_out.js @@ -35,6 +35,9 @@ class BindInOut { static init(anIn, anOut) { const out = anOut || document.querySelector(`*[data-bind-out="${anIn.dataset.bindIn}"]`); + + if (!out) return; + const bindInOut = new BindInOut(anIn, out); return bindInOut.addEvents().updateOut(); |