         appendResultFrame "//#{@iframeUsername}.koding.com/codeshare_temp/"+@iframeFileName
       #
       #
-      ///////////////////////////////////////////////////////////////////// ###
-
-
-  resetResultFrame:=>
-    @$(".result-frame")[0].contentWindow.postMessage(JSON.stringify({resetFrame:yes}),"*")
-    # @codeView.options.attributes.src = @codeView.options.attributes.src
-
-  stopResultFrame:=>
-     @$(".result-frame")[0].contentWindow.postMessage(JSON.stringify({stopFrame:yes}),"*")
-
-  appendResultFrame:(url)=>
-
-    @codeView?.destroy()
-
-    @codeView = new KDCustomHTMLView
-      tagName  : "iframe"
-      cssClass : "result-frame"
-      name : "result-frame"
-      attributes:
-        src: url
-        sandbox : "allow-scripts"
-    @codeViewContainer.addSubView @codeView
-
-  viewAppended: ->
-
-    @setTemplate @pistachio()
-    @template.update()
-
-
-  pistachio:->
-    """
-      {{> @codeViewContainer}}
-    """
-
-class CodeBinSnippetView extends KDCustomHTMLView
-
-  openFileIteration = 0
-
-  constructor:(options, data)->
-    options.tagName  = "figure"
-    options.cssClass = "code-container"
-    super
-    @unsetClass "kdcustomhtml"
-
-    {content, syntax, title} = data = @getData()
-
-    hjsSyntax = __aceSettings.aceToHighlightJsSyntaxMap[syntax]
-
-    @codeView = new KDCustomHTMLView
-      tagName  : "code"
-      pistachio : '{{#(content)}}'
-    , data
-
-    @codeView.setClass hjsSyntax if hjsSyntax
-    @codeView.unsetClass "kdcustomhtml"
-
-    @syntaxMode = new KDCustomHTMLView
-      tagName  : "strong"
-      partial  : __aceSettings.syntaxAssociations[syntax]?[0] or syntax ? "text"
-
-    @saveButton = new KDButtonView
-      title     : ""
-      style     : "dark"
-      icon      : yes
-      iconOnly  : yes
-      iconClass : "save"
-      callback  : ->
-        new KDNotificationView
-          title     : "Currently disabled!"
-          type      : "mini"
-          duration  : 2500
-
-        # CodeBinSnippetView.emit 'CodeSnippetWantsSave', data
-
-    @openButton = new KDButtonView
-      title     : ""
-      style     : "dark"
-      icon      : yes
-      iconOnly  : yes
-      iconClass : "open"
-      callback  : ->
-        fileName      = "localfile:/#{title}"
-        file          = FSHelper.createFileFromPath fileName
-        file.contents = Encoder.htmlDecode(content)
-        file.syntax   = syntax
-        appManager.openFileWithApplication file, 'Ace'
-
-    @copyButton = new KDButtonView
-      title     : ""
-      style     : "dark"
-      icon      : yes
-      iconOnly  : yes
-      iconClass : "select-all"
-      callback  : =>
-        @utils.selectText @codeView.$()[0]
-
-  render:->
-
-    super()
-    @codeView.setData @getData()
-    @codeView.render()
-    @applySyntaxColoring()
-
-  applySyntaxColoring:( syntax = @getData().syntax)->
-
-    snipView  = @
-    hjsSyntax = __aceSettings.aceToHighlightJsSyntaxMap[syntax]
-
-    if hjsSyntax
-      requirejs (['js/highlightjs/highlight.js']), ->
-        requirejs (["highlightjs/languages/#{hjsSyntax}"]), ->
-          try
-            hljs.compileModes()
-            hljs.highlightBlock snipView.codeView.$()[0],'  '
-          catch err
-            console.warn "Error applying highlightjs syntax #{syntax}:", err
-
-  viewAppended: ->
-
-    @setTemplate @pistachio()
-    @template.update()
-    @applySyntaxColoring()
-
-    twOptions = (title) ->
-      title : title, placement : "above", offset : 3, delayIn : 300, html : yes, animate : yes
-
-    @saveButton.$().twipsy twOptions("Save")
-    @copyButton.$().twipsy twOptions("Select all")
-    @openButton.$().twipsy twOptions("Open")
-
-  pistachio:->
-    """
-    <div class='kdview'>
-      {pre{> @codeView}}
-      <div class='button-bar'>{{> @saveButton}}{{> @openButton}}{{> @copyButton}}</div>
-    </div>
-    {{> @syntaxMode}}
-    """
+      ///////////////////////////////////////////////////////////////////// ###
    @codeBinResultView.hide()

    @codeBinResultButton = new KDButtonView
      title: "Run Code Share"
      cssClass:"clean-gray result-button"
      click:=>
        @codeBinResultButton.setTitle "Reset Code Share"
        @codeBinResultView.show()
        @resultBanner.hide()
        @codeBinCloseButton.show()
        @codeBinResultView.emit "CodeBinSourceHasChanges", @getData()
        @codeBinContainer.showPane @codeBinResultPane

    @codeBinCloseButton = new KDButtonView
      title: "Stop and Close Code Share"
      cssClass:"clean-gray hidden"
      click:=>
        @codeBinResultView.hide()
        @codeBinResultView.stopResultFrame()
        @codeBinResultView.resetResultFrame()

          clearInterval initiallyPausedObserver
    ,500

  pistachio:->
    """
    {{> @settingsButton}}
    <span class="avatar">{{> @avatar}}</span>
