diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index d9fe55c03..b796898b4 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -63,7 +63,7 @@ describe "Editor", -> describe "when soft-wrap is enabled", -> beforeEach -> - otherEditor = new Editor() + otherEditor = new Editor otherEditor.setBuffer editor.buffer otherEditor.attachToDom() charWidth = otherEditor.charWidth @@ -2069,7 +2069,7 @@ describe "Editor", -> describe "path-change event", -> it "emits event when buffer's path is changed", -> - editor = new Editor() + editor = new Editor eventHandler = jasmine.createSpy('eventHandler') editor.on 'buffer-path-change', eventHandler diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index 1a7729fb9..656908f73 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -72,7 +72,7 @@ class RootView extends View if @editors.length _.last(@editors) else - editor = new Editor() + editor = new Editor @editors.push(editor) editor.appendTo(@panes) editor.focus()