Forgot to bind.

This commit is contained in:
André Cruz
2013-03-30 20:28:31 +00:00
parent fd472403c1
commit b9304d219b

View File

@@ -249,7 +249,7 @@ Package.prototype.cleanUpLocal = function () {
fileExists(this.gitPath, function (exists) {
if (!exists) return next();
fs.writeFile(path.join(this.gitPath, this.localConfig.json), jsonStr, next);
});
}.bind(this));
}.bind(this)
}, function (err) {
if (err) return this.emit('error', err);