Commit 39467838 authored by Z.J. van de Weg's avatar Z.J. van de Weg

Fix no out element case

parent 77d0de91
...@@ -35,6 +35,9 @@ class BindInOut { ...@@ -35,6 +35,9 @@ class BindInOut {
static init(anIn, anOut) { static init(anIn, anOut) {
const out = anOut || document.querySelector(`*[data-bind-out="${anIn.dataset.bindIn}"]`); const out = anOut || document.querySelector(`*[data-bind-out="${anIn.dataset.bindIn}"]`);
if (!out) return;
const bindInOut = new BindInOut(anIn, out); const bindInOut = new BindInOut(anIn, out);
return bindInOut.addEvents().updateOut(); return bindInOut.addEvents().updateOut();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment