From d5723c259784c9607d3836b8530788aaea0e3b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Wed, 9 Sep 2015 12:58:21 +0200 Subject: [PATCH] fix: javascript in chromium --- cvlp_lib.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cvlp_lib.js b/cvlp_lib.js index e1d4d9f..594d51a 100644 --- a/cvlp_lib.js +++ b/cvlp_lib.js @@ -42,7 +42,7 @@ function cvlp_arc(x, y, radius, start, angle, thickness) { } // create a set of elements with an pad element -function cvlp_pad(number, x, y, width, height, round=true) { +function cvlp_pad(number, x, y, width, height, round) { var pad = {} pad.type = "pad" pad.number = number @@ -50,12 +50,12 @@ function cvlp_pad(number, x, y, width, height, round=true) { pad.y = y pad.width = width pad.height = height - pad.round = round + pad.round = round || true return [pad] } // create a set of elements with an pin element -function cvlp_pin(number, x, y, thickness, drill, round=true) { +function cvlp_pin(number, x, y, thickness, drill, round) { var pin = {} pin.type = "pin" pin.number = number @@ -63,18 +63,18 @@ function cvlp_pin(number, x, y, thickness, drill, round=true) { pin.y = y pin.thickness = thickness pin.drill = drill - pin.round = round + pin.round = round || true return [pin] } // create a set of elements representing a chain of lines // provide a list of [x,y] coordinates -function cvlp_polyline(points, thickness, closed=false) { +function cvlp_polyline(points, thickness, closed) { var polyline = [] for (var i=0; i