Changes representation of empty list
Function `line` used `'Nil`' representation of empty list which cause execution of `customLineHelp` function instead of `trace`
commit6c1e3c33e593598f83523d55abf798e5c77bbb74
authorandreywix <andreye@wix.com>
dateThu 21 Aug 2014, 14:42 (12 years ago)
parentf9d497d
runtime/Render/Collage.js+1−1
@@ -21,7 +21,7 @@ function trace(ctx, path) {
2121}
2222
2323function line(ctx,style,path) {
24− style.dashing.ctor === 'Nil' ? trace(ctx, path) : customLineHelp(ctx, style, path);
24+ style.dashing.ctor === '[]' ? trace(ctx, path) : customLineHelp(ctx, style, path);
2525 ctx.scale(1,-1);
2626 ctx.stroke();
2727}