From 7fd79bb26989021546f6c78a52824d8e0b1dec26 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Mon, 29 May 2017 20:29:00 -0700 Subject: [PATCH] Update text.coffee --- lib/mixins/text.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mixins/text.coffee b/lib/mixins/text.coffee index 62cfc04..1f06241 100644 --- a/lib/mixins/text.coffee +++ b/lib/mixins/text.coffee @@ -23,7 +23,7 @@ module.exports = options = @_initOptions(x, y, options) # Convert text to a string - text = if text == null or text == undefined then '' else '' + text + text = if not text? then '' else '' + text # if the wordSpacing option is specified, remove multiple consecutive spaces if options.wordSpacing