Update path_group.class.js (#3728)

This commit is contained in:
by12 2017-02-21 13:16:22 +01:00 committed by Asturur
parent a5d5dc17d2
commit 23eb9b2cb1

View file

@ -259,7 +259,7 @@
var originalPaths = object.paths;
delete object.paths;
// remove this pattern from 2.0 accepts only object
if (typeof orignalPaths === 'string') {
if (typeof originalPaths === 'string') {
fabric.loadSVGFromURL(originalPaths, function (elements) {
var pathUrl = originalPaths;
var pathGroup = fabric.util.groupSVGElements(elements, object, pathUrl);