   refresh: ->
     @closeCollapse()
     @fitText()
-    @textToCollpase.css('opacity', 0)
-    setTimeout (=> @textToCollpase.css('opacity', 1)), 700
+    @textToCollapse.css('opacity', 0)
+    setTimeout (=> @textToCollapse.css('opacity', 1)), 700
 
   fitText: =>
     @textCollapsedHeight = @computeTextCollapseHeight()
-    @textToCollpase.css height: @textCollapsedHeight
+    @textToCollapse.css height: @textCollapsedHeight
 
-    setTimeout (=> @textToCollpase.trigger 'update.dot'), 700 # Fallback 1
-    setTimeout (=> @textToCollpase.trigger 'update.dot'), 1500 # Fallback 2
+    setTimeout (=> @textToCollapse.trigger 'update.dot'), 700 # Fallback 1
+    setTimeout (=> @textToCollapse.trigger 'update.dot'), 1500 # Fallback 2
 
   computeTextCollapseHeight: ->
-    @textToCollpase.css 'height', 0
+    @textToCollapse.css 'height', 0
 
     collapseOrModalToggle =
       if @collapseToggle.is(':visible')


    diff = collapseOrModalToggle.offset().top - @text.offset().top - 30

    if @textToCollpase == @textManualSplit
      return 0
    else
      return if diff < 160 then 160 else diff

  constructor: (@el) ->
    super

    @text                = $('.text', @el).first()
    @textManualSplit     = $('.text.manual-split', @el)
    @textToCollapse      = if @textManualSplit.length then @textManualSplit else @text
    @collapseToggle      = $('.toggle-wrapper svg', @el)
    @modalToggle         = $('> [data-toggle="modal"]', @inner)
    @modalDismiss        = $("[data-dismiss][data-target='#{@modalToggle.data('target')}']")
    @modal               = $(@modalToggle.data('target'))
    @textToCollapse.open = false

    @modal.on 'shown.bs.modal',                  => @modalDismiss.show()
    @modal.on 'hide.bs.modal',                   => @modalDismiss.hide()
    @modalDismiss.on 'touchstart click',         => @modal.modal('hide')
    @collapseToggle.on 'click',                  => @onCollapseToggleClick()
    @textToCollapse.on $.support.transition.end, => @textToCollapse.trigger('update.dot')

    @text.height 'auto' if @text != @textToCollapses

    @textToCollapse.dotdotdot(watch: 'window')
    @fitText()

    setTimeout (=>
