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,