aboutsummaryrefslogtreecommitdiff
path: root/static/lib.js
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-10-26 18:10:01 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-10-26 18:10:01 +0100
commitcf5a85a73a188cf2608e61bee4a442e975b1a672 (patch)
treea1cab50805ed5756f4cd17ab1ff47c4f6f482b29 /static/lib.js
parentWork on generalizing multi-input lists. (diff)
downloadcalp-cf5a85a73a188cf2608e61bee4a442e975b1a672.tar.gz
calp-cf5a85a73a188cf2608e61bee4a442e975b1a672.tar.xz
Fields for extra properties update correctly!
Diffstat (limited to '')
-rw-r--r--static/lib.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/static/lib.js b/static/lib.js
index 79e48f1e..46236411 100644
--- a/static/lib.js
+++ b/static/lib.js
@@ -3,6 +3,15 @@
General procedures which in theory could be used anywhere.
*/
+HTMLElement.prototype._addEventListener = HTMLElement.prototype.addEventListener;
+HTMLElement.prototype.addEventListener = function (name, proc) {
+ if (! this.listeners) this.listeners = {};
+ if (! this.listeners[name]) this.listeners[name] = [];
+ this.listeners[name].push(proc);
+ return this._addEventListener(name, proc);
+};
+
+
/* ----- Date Extensions ---------------------------- */
/*