 class KDInputViewWithPreview extends KDInputView
 
-  constructor:(options={},data)->
-
-    options.preview               ?= {}
+  constructor:(options = {}, data)->
+    options.preview               or= {}
     options.preview.autoUpdate    ?= yes
     options.preview.language      or= "markdown"
     options.preview.showInitially ?= yes

      if @options.preview.language is "markdown"
        @$("div.preview_content span.data").html @utils.applyMarkdown @getValue()
        @$("div.preview_content span.data pre").each (i,element)=>
          hljs.highlightBlock element
        @generatePreview()
      yes

    super options, data

    @setClass "kdinputwithpreview"

    @showPreview = options.preview.showInitially or no

    @previewOnOffLabel = new KDLabelView
      cssClass      : "preview_switch_label unselectable"
      title         : "Preview"
      tooltip       :
        title       : "Show/hide the Text Preview Box"
