on master help sign in
Debugger: better node types.
f4987aeLaszlo Pandy
libraries/Native/Signal/Signal.js+3−3
@@ -110,7 +110,7 @@ Elm.Native.Signal.make = function(elm) {
110 }
110 }
111
111
112 function DropIf(pred,base,input) {
112 function DropIf(pred,base,input) {
113− this.nodeType = "drop";
113+ this.nodeType = "dropIf";
114
114
115 this.id = Utils.guid();
115 this.id = Utils.guid();
116 this.value = pred(input.value) ? base : input.value;
116 this.value = pred(input.value) ? base : input.value;
@@ -124,7 +124,7 @@ Elm.Native.Signal.make = function(elm) {
124 }
124 }
125
125
126 function DropRepeats(input) {
126 function DropRepeats(input) {
127− this.nodeType = "drop";
127+ this.nodeType = "dropRepeats";
128
128
129 this.id = Utils.guid();
129 this.id = Utils.guid();
130 this.value = input.value;
130 this.value = input.value;
@@ -138,7 +138,7 @@ Elm.Native.Signal.make = function(elm) {
138 }
138 }
139
139
140 function dropWhen(s1,b,s2) {
140 function dropWhen(s1,b,s2) {
141− this.nodeType = "drop";
141+ this.nodeType = "dropWhen";
142
142
143 var pairs = lift2( F2(function(x,y){return {x:x,y:y};}), s1, s2 );
143 var pairs = lift2( F2(function(x,y){return {x:x,y:y};}), s1, s2 );
144 var dropped = new DropIf(function(p){return p.x;},{x:true,y:b},pairs);
144 var dropped = new DropIf(function(p){return p.x;},{x:true,y:b},pairs);