diff options
Diffstat (limited to 'js/Dom.js')
-rw-r--r-- | js/Dom.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/Dom.js b/js/Dom.js new file mode 100644 index 0000000..6835c1f --- /dev/null +++ b/js/Dom.js @@ -0,0 +1,12 @@ +"use strict"; + +exports.onInput = function (elt) { + return function (f) { + return function () { + elt.oninput = function(e) { + f(e.target.value)() + } + return {}; + }; + }; +}; |