on master help sign in
Rename "output" to "ports" and "input" to "signal"
commitbeabf941e46c371bfbd782dc96c5aaf006d6bd90 authorEvan Czaplicki <info@elm-lang.org> dateTue 14 Jan 2014, 14:05 (13 years ago) parent0fd74d4
1 file changed+2−2
runtime/Init.js+2−2
runtime/Init.js+2−2
@@ -27,7 +27,7 @@ Elm.worker = function(module, ports) {
2727 return init(ElmRuntime.Display.NONE, {}, module, ports || {});
2828};
2929
30−Elm.input = function(defaultValue, errorHandler) {
30+Elm.signal = function(defaultValue, errorHandler) {
3131 var subscribers = []
3232 function subscribe(handler) {
3333 subscribers.push(handler);
@@ -133,7 +133,7 @@ function init(display, container, module, ports, moduleToReplace) {
133133 }
134134
135135 reportAnyErrors();
136− return { swap:swap, output:elm.ports.outgoing };
136+ return { swap:swap, ports:elm.ports.outgoing };
137137};
138138
139139function checkPorts(elm) {