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