Fix lines test

This commit is contained in:
Andrea Bogazzi 2017-01-07 14:31:14 +01:00 committed by GitHub
parent 673959b4e7
commit 4df8ef3698

View file

@ -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,