Fix errors made when porting over IE9 Fix

- When fix was added, I was still referencing element.textContent instead of the modified textContent
This commit is contained in:
mbrzuzy 2015-07-08 16:19:04 -04:00
parent 1ecebe38ee
commit 5ddcce5687

View file

@ -1054,9 +1054,9 @@
textContent = element.textContent;
}
textContent = element.textContent.replace(/^\s+|\s+$|\n+/g, '').replace(/\s+/g, ' ');
textContent = textContent.replace(/^\s+|\s+$|\n+/g, '').replace(/\s+/g, ' ');
var text = new fabric.Text(textContent, options);
var text = new fabric.Text(textContent, options),
/*
Adjust positioning:
x/y attributes in SVG correspond to the bottom-left corner of text bounding box