   toggle: ->
     #console.log "RegexRailroadDiagramView was toggled!"
 
-    statusBar = @view.find('.status-bar')
+    statusBar = @spView.find('.status-bar')
 
     if statusBar.length > 0
       @insertBefore(statusBar)

            text = m[1]

      if not @isVisible or @currentRegex != text
        @.find('div.error-message').remove()
        try
          @showRailRoadDiagram(text, flavour)
        catch error

{Regex2RailRoadDiagram} = require './regex-to-railroad'
{$$, View, $} = require "atom-space-pen-views"
{Range} = require 'atom'

module.exports =
