diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-03-02 23:34:14 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-03-02 23:34:14 +0100 |
commit | cbe3c46a898822b6ee0f10366e561c6a8055a1b6 (patch) | |
tree | 3ceb9ecfb97b0d8a6db6f2c3cc17f59b5c117f63 /static/binders.js | |
parent | Look at mapping in vcal types to js types. (diff) | |
download | calp-cbe3c46a898822b6ee0f10366e561c6a8055a1b6.tar.gz calp-cbe3c46a898822b6ee0f10366e561c6a8055a1b6.tar.xz |
Start moving vcal stuff to own class.
Diffstat (limited to '')
-rw-r--r-- | static/binders.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/static/binders.js b/static/binders.js index 197fb368..729866f3 100644 --- a/static/binders.js +++ b/static/binders.js @@ -7,7 +7,7 @@ function bind_recur(el, e) { /* todo bind default slots of rrule */ - let p = get_property(el, 'rrule'); + let p = el.properties.get('rrule'); // let rrule = el.rrule; /* add listeners to bind-rr tags */ @@ -62,7 +62,7 @@ function bind_recur(el, e) { } function bind_edit(el, e) { - let p = get_property(el, e.dataset.property); + let p = el.properties.get(e.dataset.property); e.addEventListener('input', function () { el.properties[e.dataset.property] = this.value; }); @@ -89,8 +89,8 @@ function bind_edit(el, e) { } function bind_view(el, e) { - let f = (s, v) => s.innerHTML = v.format(s.dataset && s.dataset.fmt); - get_property(el, e.dataset.property).push([e, f]); + let f = (s, v) => s.innerHTML = v.format(s.dataset && s.dataset.fmt); + el.properties.get(e.dataset.property).push([e, f]); } |