From 431a5186fe194a941ece4f6a2137e358a3a84356 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Tue, 23 Aug 2011 10:46:51 -0400 Subject: [PATCH] Automatically convert text to a string --- lib/mixins/text.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/mixins/text.coffee b/lib/mixins/text.coffee index bc28e11..73c3451 100644 --- a/lib/mixins/text.coffee +++ b/lib/mixins/text.coffee @@ -25,6 +25,9 @@ module.exports = options = x x = null + # Convert text to a string + text = '' + text + # Update the current position if x? or y? @x = x or @x