on master help sign in
Rename "output" to "ports" and "input" to "signal"
beabf94Evan Czaplicki
runtime/Init.js+2−2
@@ -27,7 +27,7 @@ Elm.worker = function(module, ports) {
27 return init(ElmRuntime.Display.NONE, {}, module, ports || {});
27 return init(ElmRuntime.Display.NONE, {}, module, ports || {});
28};
28};
29
29
30−Elm.input = function(defaultValue, errorHandler) {
30+Elm.signal = function(defaultValue, errorHandler) {
31 var subscribers = []
31 var subscribers = []
32 function subscribe(handler) {
32 function subscribe(handler) {
33 subscribers.push(handler);
33 subscribers.push(handler);
@@ -133,7 +133,7 @@ function init(display, container, module, ports, moduleToReplace) {
133 }
133 }
134
134
135 reportAnyErrors();
135 reportAnyErrors();
136− return { swap:swap, output:elm.ports.outgoing };
136+ return { swap:swap, ports:elm.ports.outgoing };
137};
137};
138
138
139function checkPorts(elm) {
139function checkPorts(elm) {