   # 
   $('.tagAnalysis .trigger').click( (event) ->
     $(this).parent().toggleClass('expanded')
-  )+  )
+  
  create: ->
    @tag.create().then (response)=>
      @setId(response.what_id)
      @tag.setId(response.what_id)
  remove: ->
    # FIX THIS HERE This if statement is not firing properly
    #if $("#sorting").val() is "1"

    @tagViewClass = tagViewClass
    @addAllCurrentTags()
    
    clickEvent = if (navigator.userAgent.match(/iPad/i)) then "touchstart" else "click"
    
    @$container.find('.tag .close-16').live clickEvent, (event)=>
      @removeTag($(event.currentTarget).parent().data('id'))
    
