 
         @editor = currentPaneItem
 
-        @language = @editor.getGrammar?()?.name.toLowerCase()
-        if @language?
-            kernel = KernelManager.getRunningKernelForLanguage(@language)
+        language = @editor.getGrammar?()?.name.toLowerCase()
+        if language?
+            kernel = KernelManager.getRunningKernelForLanguage language
 
         if kernel?
-            @setStatusBarElement(kernel.statusView.getElement())
+            @setStatusBarElement kernel.statusView.getElement()
         else
             @removeStatusBarElement()
 

    statusBarElement: null
    statusBarTile: null
    editor: null
    language: null
    markerBubbleMap: {}

    activate: (state) ->


            @clearBubblesOnRow row
            view = @insertResultBubble row
            KernelManager.execute language, code, (result) =>
                view.spin false
                view.addResult result

