Access project from atom global

This commit is contained in:
Kevin Sawicki
2013-11-14 12:45:59 -08:00
parent 28943a35da
commit 3ec2378242

View File

@@ -589,7 +589,7 @@ class Editor extends View
# Checkout the HEAD revision of this editor's file.
checkoutHead: ->
if path = @getPath()
@project.getRepo()?.checkoutHead(path)
atom.project.getRepo()?.checkoutHead(path)
# {Delegates to: EditSession.setText}
setText: (text) -> @activeEditSession.setText(text)