       KD.singletons.localSync.removeFromOpenedFiles file
       @getDelegate().removeOpenDocument @
 
-    @ace.on "ace.changeSetting", (setting, value)->
-      if setting is "syntax"
+    @ace.on 'ace.changeSetting', (setting, value)->
+      if setting is 'syntax'
         file = @getData()
         fileExtension = file.getExtension()
         appStorage = KD.getSingleton('appStorageController').storage 'Ace', '1.0.1'
         appStorage.setValue "syntax_#{fileExtension}", value
 
-    @ace.on "FileIsReadOnly", =>
-      @getActiveTabHandle().setClass "readonly"
+    @ace.on 'FileIsReadOnly', =>
+      @getActiveTabHandle().setClass 'readonly'
       @ace.setReadOnly yes
       modal             = new KDModalView
-        title           : "This file is readonly"
+        title           : 'This file is readonly'
         content         : """
         <div class="modalformline">
           <p>

        </div>
        """
        buttons         :
          "Edit Anyway" :
            cssClass    : "modal-clean-red"
            callback    : =>
              @ace.setReadOnly no
              modal.destroy()
          "Cancel"      :
            cssClass    : "modal-cancel"
            callback    : ->
              modal.destroy()



    super options, file

    options.advancedSettings         ?= no
    options.createFindAndReplaceView ?= yes

    @listenWindowResize()
