 
   applyHiddenWidth: (width) ->
     return unless @enabled
-    console.log 'autohide-tree-view: ', treeViewEl.parentNode
     width = @getHiddenWidth() if isNaN parseInt width
     treeViewEl.style.width = "#{width}px"
-    treeViewEl.parentNode.style.width = "#{width}px"
+    treeViewEl.parentNode.style?.width = "#{width}px"
 
   getAnimate: -> atom.config.get 'autohide-tree-view.animate'
 

'use strict'
path = require 'path'
SubAtom = require 'sub-atom'

class AutohideTreeView
  treeView = null


  getHiddenWidth: -> atom.config.get 'autohide-tree-view.hiddenWidth'

  enableHoverEvents: -> treeViewEl.classList.add 'autohide-hover-events'

  disableHoverEvents: -> treeViewEl.classList.remove 'autohide-hover-events'

module.exports = new AutohideTreeView()