diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-14 12:56:01 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-14 13:03:28 +0200 |
commit | 74ce46fba9f98781523faf74469e6f2618cdfd20 (patch) | |
tree | 477ba3e936f855a30c56d068eaddea2f87c5023e /static/script.js | |
parent | Javascripts date should now work for both local and UTC dates. (diff) | |
download | calp-74ce46fba9f98781523faf74469e6f2618cdfd20.tar.gz calp-74ce46fba9f98781523faf74469e6f2618cdfd20.tar.xz |
Document JS event properties.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 10 |
1 files changed, 9 insertions, 1 deletions
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; |