     @menu?.destroy()
     @blur()
 
+    return  unless data.length
+
     pos       = @tokenInput.getBoundingClientRect()
     options.x = pos.left
     options.y = pos.top + parseInt window.getComputedStyle(@tokenInput).lineHeight, 10

    super
    switch event.which
      when 9, 13, 27, 38, 40 # enter, tab, escape, up, down
      else
        if @activeRule then @matchToken()
        else @matchPrefix()


    @activeRule = null
    @tokenInput = null

  menuItemClicked: (item, tokenViewClass) ->
    @addToken item.data, tokenViewClass
    @hideMenu()

  addToken: (item, tokenViewClass = @getOptions().tokenViewClass) ->
