From 74ce46fba9f98781523faf74469e6f2618cdfd20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 14 Jul 2020 12:56:01 +0200 Subject: Document JS event properties. --- static/script.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'static/script.js') diff --git a/static/script.js b/static/script.js index 6400a2b1..7780434c 100644 --- a/static/script.js +++ b/static/script.js @@ -566,10 +566,18 @@ function format_date(date, str) { Object.prototype.format = function () { return this; } /* any number of arguments */ Date.prototype.format = function (str) { return format_date (this, str); } + /* -*/ + Properties are icalendar properties. + p['name'] to get and set value (also updates any connected slots) + p['_value_name'] for raw value + p['_slot_name'] for connected slots, Vector of pairs, where the + car should be a reference to the slot, and the + cdr a procedure which takes a slot and a value + and binds the value to the slot. + */ function bind_properties (el, wide_event=false) { el.properties = {} let children = el.getElementsByTagName("properties")[0].children; -- cgit v1.2.3