           @remove()
           @tb?.hide()
       }
-    ]
+    ].concat @getCustomButtons()
 
   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.

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

    @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()
