     form.addSubView labelFileName = new KDLabelView
       title : "Filename:"
 
-    form.addSubView @inputFileName = inputFileName = new KDInputView 
+    form.addSubView @inputFileName = inputFileName = new KDInputView
       label        : labelFileName
       defaultValue : file.name
 

      icon      : yes
      iconOnly  : yes
      iconClass : "compile"
      callback  : => 
        @getSingleton('kodingAppsController').compileApp @getData().path, =>
          @ace.notify "App compiled!", "success"

    @compileButton.hide() unless /\.kdapp\//.test @getData().path

    @setViewListeners()
    
  setViewListeners:->

    @advancedSettings.on "ace.changeSetting", (setting, value)=>
      @ace["set#{setting.capitalize()}"]? value
    
    @advancedSettings.emit "ace.settingsView.setDefaults", @ace
    
    $spans = @caretPosition.$('span')

    @ace.on "ace.change.cursor", (cursor)=>

###
  todo:

    - make save dialog a view with pistachio
    - put listeners in methods
    - make this splittable

###

class AceView extends JView
