mirror of
https://github.com/atom/atom.git
synced 2026-02-06 04:34:55 -05:00
Use class methods to create native object shims
CoffeeScript 1.5 complains if a constructor has a returns a value.
This commit is contained in:
@@ -24,7 +24,7 @@ class Git
|
||||
ignore: 1 << 14
|
||||
|
||||
constructor: (path, options={}) ->
|
||||
@repo = new GitRepository(path)
|
||||
@repo = GitRepository.open(path)
|
||||
refreshIndexOnFocus = options.refreshIndexOnFocus ? true
|
||||
if refreshIndexOnFocus
|
||||
$ = require 'jquery'
|
||||
|
||||
Reference in New Issue
Block a user