diff --git a/lib/mixins/vector.coffee b/lib/mixins/vector.coffee index ee134ee30..25bc8363a 100644 --- a/lib/mixins/vector.coffee +++ b/lib/mixins/vector.coffee @@ -46,11 +46,14 @@ module.exports = dash: (length, options = {}) -> return this unless length? - - space = options.space ? length - phase = options.phase or 0 - - @addContent "[#{length} #{space}] #{phase} d" + if Array.isArray length + length = length.join ' ' + phase = options.phase or 0 + @addContent "[#{length}] #{phase} d" + else + space = options.space ? length + phase = options.phase or 0 + @addContent "[#{length} #{space}] #{phase} d" undash: -> @addContent "[] 0 d"