   updateScroll: (top) =>
     minimapHeight = @miniScrollView.outerHeight()
     scrollViewHeight = @scrollView.outerHeight()
-    # Need scroll-top value when in find-replace or in Vim mode(`gg`, `shift+g`). 
+    # Need scroll-top value when in find-replace or in Vim mode(`gg`, `shift+g`).
     # Or we can find a better solution.
-    if top isnt undefined
+    if top?
       overlayY = top
     else
       scrollViewOffset = @scrollView.offset().top


  updateMinimapEditorView: => @miniEditorView.update()

  updateMinimapView: ->
    # offset minimap
    @offset top: @editorView.offset().top


    @on 'mousedown', @mouseDown

    @subscribe @paneView.model.$activeItem, @onActiveItemChanged
    @subscribe @miniEditorView, 'minimap:updated', @updateMinimapView

    @subscribe $(window), 'resize:end', @onScrollViewResized

    themeProp = 'minimap.theme'
