 
   requestSave:->
     contents = @getContents()
-    unless contents is "" or @isContentChanged()
+    unless contents is '' or @isContentChanged()
       if @getDelegate().parent.active
-        @notify "Nothing to save!"
+        @notify 'Nothing to save!'
       return
     file = @getData()
     {localSync} = KD.singletons
     # update the localStorage each time user requested save.
     if KD.remote.isConnected()
       @askedForSave = yes
-      @emit "ace.requests.save", contents
+      @emit 'ace.requests.save', contents
       # if file is saved, remove it from localStorage
       localSync.removeFromSaveArray file
     else

    return  unless save
    @appStorage.setValue 'showInvisibles', value

  setKeyboardHandler: (value = "default") ->
    handlers =
      default : null
      vim     : @vimKeyboardHandler
      emacs   : @emacsKeyboardHandler

    @editor.setKeyboardHandler handlers[value]
    @appStorage.setValue "keyboardHandler", value

  setScrollPastEnd: (value = yes) ->
    @editor.setOption "scrollPastEnd", value
    @appStorage.setValue "scrollPastEnd", value

  setFontSize:(value, save = yes)->


      @setSoftWrap            @appStorage.getValue('softWrap')            or 'off' ,no
      @setFontSize            @appStorage.getValue('fontSize')            ? 12     ,no
      @setTabSize             @appStorage.getValue('tabSize')             ? 4      ,no
      @setKeyboardHandler     @appStorage.getValue('keyboardHandler')     ? 'default'
      @setScrollPastEnd       @appStorage.getValue('scrollPastEnd')       ? yes
      @setOpenRecentFiles     @appStorage.getValue('openRecentFiles')     ? yes

    requirejs ['ace/ext/language_tools'], =>
      @editor.setOptions
        enableBasicAutocompletion: yes
        enableSnippets: yes
