aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.js')
-rw-r--r--src/text.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.js b/src/text.js
index 20c2c1e..9895a35 100644
--- a/src/text.js
+++ b/src/text.js
@@ -33,7 +33,7 @@ SVG.Text = SVG.invent({
if (y == null)
return typeof oy === 'number' ? oy - o : oy
- return this.attr('y', typeof y === 'number' ? y + o : y)
+ return this.attr('y', typeof y.valueOf() === 'number' ? y + o : y)
}
// Move center over x-axis
, cx: function(x) {