on master help sign in
Change send function to be curry-able.
commit7d1b40a85fbbba885239fd3b98e2d2b9d8b9e7ab authorevancz <info@elm-lang.org> dateMon 1 Apr 2013, 00:35 (14 years ago) parent475bc10
1 file changed+1
runtime/Init.js+1
runtime/Init.js+1
@@ -44,6 +44,7 @@ Elm.init = function(module, baseNode) {
4444
4545 // Set up methods to communicate with Elm program from JS.
4646 function send(name, value) {
47+ if (typeof value === 'undefined') return function(v) { return send(name,v) };
4748 var e = document.createEvent('Event');
4849 e.initEvent(name + '_' + elm.id, true, true);
4950 e.value = value;