Skip to content

Commit

Permalink
Raphael.parseTransformString() now returns a copy of the array of arr…
Browse files Browse the repository at this point in the history
…ays instead of the actual result
  • Loading branch information
by99 committed Nov 13, 2015
1 parent 757b828 commit 1db199e
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 11 deletions.
12 changes: 11 additions & 1 deletion dev/raphael.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,17 @@
}
data.toString = R._path2string;
return data;
});
}, this, function(elem) {
if (!elem) return elem;
var newData = [];
for (var i = 0; i < elem.length; i++) {
var newLevel = [];
for (var j = 0; j < elem[i].length; j++) {
newLevel.push(elem[i][j]);
}
newData.push(newLevel);
}
return newData; } );
// PATHS
var paths = function (ps) {
var p = paths.ps = paths.ps || {};
Expand Down
7 changes: 3 additions & 4 deletions raphael-min.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions raphael-nodeps-min.js

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion raphael-nodeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,17 @@
}
data.toString = R._path2string;
return data;
});
}, this, function(elem) {
if (!elem) return elem;
var newData = [];
for (var i = 0; i < elem.length; i++) {
var newLevel = [];
for (var j = 0; j < elem[i].length; j++) {
newLevel.push(elem[i][j]);
}
newData.push(newLevel);
}
return newData; } );
// PATHS
var paths = function (ps) {
var p = paths.ps = paths.ps || {};
Expand Down
12 changes: 11 additions & 1 deletion raphael.js
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,17 @@
}
data.toString = R._path2string;
return data;
});
}, this, function(elem) {
if (!elem) return elem;
var newData = [];
for (var i = 0; i < elem.length; i++) {
var newLevel = [];
for (var j = 0; j < elem[i].length; j++) {
newLevel.push(elem[i][j]);
}
newData.push(newLevel);
}
return newData; } );
// PATHS
var paths = function (ps) {
var p = paths.ps = paths.ps || {};
Expand Down

0 comments on commit 1db199e

Please sign in to comment.