diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-26 18:10:01 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-26 18:10:01 +0100 |
commit | cf5a85a73a188cf2608e61bee4a442e975b1a672 (patch) | |
tree | a1cab50805ed5756f4cd17ab1ff47c4f6f482b29 /static/lib.js | |
parent | Work on generalizing multi-input lists. (diff) | |
download | calp-cf5a85a73a188cf2608e61bee4a442e975b1a672.tar.gz calp-cf5a85a73a188cf2608e61bee4a442e975b1a672.tar.xz |
Fields for extra properties update correctly!
Diffstat (limited to 'static/lib.js')
-rw-r--r-- | static/lib.js | 9 |
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 ---------------------------- */ /* |