diff options
Diffstat (limited to 'src/array.js')
-rwxr-xr-x | src/array.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/array.js b/src/array.js index b51d740..75c035f 100755 --- a/src/array.js +++ b/src/array.js @@ -133,8 +133,9 @@ SVG.extend(SVG.PointArray, { y -= box.y /* move every point */ - for (var i = this.value.length - 1; i >= 0; i--) - this.value[i] = [this.value[i][0] + x, this.value[i][1] + y] + if (!isNaN(x) && !isNaN(y)) + for (var i = this.value.length - 1; i >= 0; i--) + this.value[i] = [this.value[i][0] + x, this.value[i][1] + y] return this } |