     @activeRule = null
     @tokenInput = null
 
-  menuItemClicked: (item) ->
-    @addToken item.data
+  menuItemClicked: (item, tokenViewClass) ->
+    @addToken item.data, tokenViewClass
     @hideMenu()
 
   addToken: (item, tokenViewClass = @getOptions().tokenViewClass) ->

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


    @menu?.destroy()
    @blur()

    return  unless data.length

    pos       = @tokenInput.getBoundingClientRect()
    options.x = pos.left
    options.y = pos.top + parseInt window.getComputedStyle(@tokenInput).lineHeight, 10
