     @disableHoverEvents() if disableHoverEvents
     @storeFocusedElement()
     @treeView.scroller[0].style.display = ''
-    @animate(@treeView.list[0].clientWidth, delay).then (finished) =>
+    @animate @treeView.list[0].clientWidth, delay
+    .then (finished) =>
       @visible = true
       @treeView.focus() if finished
 

    @visible = false
    @enableHoverEvents()
    @recoverFocus()
    @animate(@conf.hiddenWidth, delay).then (finished) =>
      @treeView.scroller[0].style.display = 'none' if finished

  toggle: (disableHoverEvents = true) ->


  resize: ->
    promiseNextTick.then() =>
      if @visible then @show 0  else @hide 0
    .catch error

  storeFocusedElement: ->
