This commit is contained in:
Nathan Sobo
2012-04-10 13:04:54 -06:00
parent 980e1fb9fc
commit d5b93a2333
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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()