Merge pull request #215 from tshinnic/path2curve_apply_fix

Fix typo in src/path.js - ref issue #211
master
Dmitry Baranovskiy 2014-03-25 16:01:23 +11:00
commit 6696e89661
1 changed files with 2 additions and 2 deletions

View File

@ -949,7 +949,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
d.Y = path[2];
break;
case "A":
path = ["C"].concat(a2c[apply](0, [d.x, d.y].concat(path.slice(1))));
path = ["C"].concat(a2c.apply(0, [d.x, d.y].concat(path.slice(1))));
break;
case "S":
if (pcom == "C" || pcom == "S") { // In "S" case we have to take into account, if the previous command is C/S.
@ -1422,4 +1422,4 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
Snap.path.map = mapPath;
Snap.path.toString = toString;
Snap.path.clone = pathClone;
});
});