Merge pull request #1135 from bernardofd/prJan2014

[Fix] loadSVGFromString receives raw buffer instead of string when loading SVG file from disk
This commit is contained in:
Juriy Zaytsev 2014-02-01 11:38:12 -08:00
commit 172a3d3da2

View file

@ -96,7 +96,7 @@
url = url.replace(/^\n\s*/, '').replace(/\?.*$/, '').trim();
if (url.indexOf('http') !== 0) {
request_fs(url, function(body) {
fabric.loadSVGFromString(body, callback, reviver);
fabric.loadSVGFromString(body.toString(), callback, reviver);
});
}
else {