@@ -17,8 +17,6 @@ Elm.Native.Signal.make = function(elm) {
19 function Input(base) {
19 function Input(base) {
20− this.nodeType = "input";
22 this.id = Utils.guid();
20 this.id = Utils.guid();
23 this.value = base;
21 this.value = base;
24 this.kids = [];
22 this.kids = [];
@@ -33,8 +31,6 @@ Elm.Native.Signal.make = function(elm) {
35 function LiftN(update, args) {
33 function LiftN(update, args) {
36− this.nodeType = "lift";
38 this.id = Utils.guid();
34 this.id = Utils.guid();
39 this.value = update();
35 this.value = update();
40 this.kids = [];
36 this.kids = [];
@@ -90,8 +86,6 @@ Elm.Native.Signal.make = function(elm) {
92 function Foldp(step, state, input) {
88 function Foldp(step, state, input) {
93− this.nodeType = "foldp";
95 this.id = Utils.guid();
89 this.id = Utils.guid();
96 this.value = state;
90 this.value = state;
97 this.kids = [];
91 this.kids = [];
@@ -110,8 +104,6 @@ Elm.Native.Signal.make = function(elm) {
112 function DropIf(pred,base,input) {
106 function DropIf(pred,base,input) {
113− this.nodeType = "dropIf";
115 this.id = Utils.guid();
107 this.id = Utils.guid();
116 this.value = pred(input.value) ? base : input.value;
108 this.value = pred(input.value) ? base : input.value;
117 this.kids = [];
109 this.kids = [];
@@ -124,8 +116,6 @@ Elm.Native.Signal.make = function(elm) {
126 function DropRepeats(input) {
118 function DropRepeats(input) {
127− this.nodeType = "dropRepeats";
129 this.id = Utils.guid();
119 this.id = Utils.guid();
130 this.value = input.value;
120 this.value = input.value;
131 this.kids = [];
121 this.kids = [];
@@ -143,9 +133,6 @@ Elm.Native.Signal.make = function(elm) {
145 function SampleOn(s1,s2) {
135 function SampleOn(s1,s2) {
146− this.nodeType = "sampleOn";
147− this.indirectParent = s1;
149 this.id = Utils.guid();
136 this.id = Utils.guid();
150 this.value = s2.value;
137 this.value = s2.value;
151 this.kids = [];
138 this.kids = [];
@@ -170,8 +157,6 @@ Elm.Native.Signal.make = function(elm) {
170 function sampleOn(s1,s2) { return new SampleOn(s1,s2); }
157 function sampleOn(s1,s2) { return new SampleOn(s1,s2); }
172 function delay(t,s) {
159 function delay(t,s) {
173− this.nodeType = "delay";
175 var delayed = new Input(s.value);
160 var delayed = new Input(s.value);
176 var firstEvent = true;
161 var firstEvent = true;
177 function update(v) {
162 function update(v) {
@@ -183,8 +168,6 @@ Elm.Native.Signal.make = function(elm) {
185 function Merge(s1,s2) {
170 function Merge(s1,s2) {
186− this.nodeType = "merge";
188 this.id = Utils.guid();
171 this.id = Utils.guid();
189 this.value = s1.value;
172 this.value = s1.value;
190 this.kids = [];
173 this.kids = [];
@@ -217,11 +200,7 @@ Elm.Native.Signal.make = function(elm) {
218 return elm.Native.Signal.values = {
201 return elm.Native.Signal.values = {
219 input: function(v) { return new Input(v); },
202 input: function(v) { return new Input(v); },
220− constant : function(v) {
203+ constant : function(v) { return new Input(v); },
221− var s = new Input(v);
222− s.nodeType = "constant";
225 lift : F2(lift ),
204 lift : F2(lift ),
226 lift2 : F3(lift2),
205 lift2 : F3(lift2),
227 lift3 : F4(lift3),
206 lift3 : F4(lift3),