From a952de30276bf28a497455768ff39e02b638ec2a Mon Sep 17 00:00:00 2001 From: Brighton Vino Date: Fri, 25 Jan 2019 19:45:16 -0800 Subject: [PATCH] Fix for Missing Attr Wrong argument name used in function and Point objects not referenced properly --- svg.math.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/svg.math.js b/svg.math.js index 0a458ae..fbd3646 100644 --- a/svg.math.js +++ b/svg.math.js @@ -124,9 +124,9 @@ }, draw: function(svg, options){ if (svg){ - attr = attr || SVG.math.Line.attr; + attr = options || SVG.math.Line.attr; this.svg = svg; - this.line = svg.line(p1.x, p1.y, p2.x, p2.y).attr(options); + this.line = svg.line(this.p1.x, this.p1.y, this.p2.x, this.p2.y).attr(options); } else if (this.line){ this.line.remove(); @@ -218,4 +218,4 @@ }); -})(); \ No newline at end of file +})();