From 4df8ef3698fc4e297daf0dbe7377906ff455b590 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sat, 7 Jan 2017 14:31:14 +0100 Subject: [PATCH] Fix lines test --- src/shapes/line.class.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shapes/line.class.js b/src/shapes/line.class.js index 6876af26..c7293cea 100644 --- a/src/shapes/line.class.js +++ b/src/shapes/line.class.js @@ -308,6 +308,7 @@ * @return {fabric.Line} instance of fabric.Line */ fabric.Line.fromElement = function(element, options) { + options = options || { }; var parsedAttributes = fabric.parseAttributes(element, fabric.Line.ATTRIBUTE_NAMES), points = [ parsedAttributes.x1 || 0,