     @disposables = new CompositeDisposable
     opts.fade ?= not Result.removeLines @editor, @start, @end
     opts.loading ?= not opts.content
+    @getCustomButtons = if opts.getButtons? then opts.getButtons else -> []
     @createView opts
     @initMarker()
     @text = @getText()

          @remove()
          @tb?.hide()
      }
    ]

  toolbar: ->
    bg = document.createElement 'div'

# displayed after the end of the last line contained in `range`, whereas
# block-`Result`s will be displayed below it and span the whole width of
# the current editor.
# - `getButtons`: Function that will be called to get a button specification to
# be displayed in the toolbar above an inline result. Needs to return an array
# of `Button`s, where a `Button` is specified by
#   - `icon`: octicon class, e.g. `icon-x`
#   - `onclick`: Function to be called when clicking the button.

metrics = ->
  if id = localStorage.getItem 'metrics.userId'
