on master help sign in
Minor documentation fix for JavaScript/Experimental.elm

Remove logging in Native/List.js

commit970277f7f200045ac947dc21efe33fd2a332cc3f authorevancz <info@elm-lang.org> dateTue 21 May 2013, 18:27 (13 years ago) parent26420d2
2 files changed+2−6
libraries/JavaScript/Experimental.elm+2−2 libraries/Native/List.js−4
libraries/JavaScript/Experimental.elm+2−2
@@ -12,8 +12,8 @@ import JavaScript as JS
1212-- { errorLevel:10, critical:true }
1313--
1414-- -- BAD objects
15−-- { answer = null }
16−-- { info = [true,42,'what'] }
15+-- { answer:null }
16+-- { info:[true,42,'what'] }
1717toRecord : JSObject -> a
1818toRecord = JS.toRecord
1919
libraries/Native/List.js−4
@@ -280,7 +280,6 @@ Elm.Native.List = function(elm) {
280280 if (!Utils.eq(array[i+j], sep[j])) { match = false; break; }
281281 }
282282 if (match) {
283− console.log(i);
284283 matches.push(i);
285284 i += seplen - 1;
286285 }
@@ -295,15 +294,12 @@ Elm.Native.List = function(elm) {
295294 var out = Nil;
296295 var index = alen - 1;
297296 for (var i = matches.length; i--; ) {
298− console.log('starts at', index);
299297 var temp = Nil;
300298 var stop = matches[i] + seplen - 1;
301299 for ( ; index > stop; --index ) {
302300 temp = Cons(array[index], temp);
303301 }
304− console.log(toArray(temp));
305302 out = Cons(temp,out);
306− console.log('ends at', index);
307303 index -= seplen;
308304 }
309305 return out;