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:
Kevin Sawicki
2013-02-27 13:24:08 -08:00
parent 23c3b18cf4
commit 745a3ef9f2
7 changed files with 16 additions and 16 deletions

View File

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