self was not defined

This commit is contained in:
Ionică Bizău 2015-07-12 15:22:26 +03:00
parent 28a2881f9e
commit 5147e5ba7c
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ GitStats.prototype.get = function (callback) {
* @return {GitStats} The `GitStats` object.
*/
GitStats.prototype.save = function (stats, callback) {
WriteJson(self.path, stats, callback);
WriteJson(this.path, stats, callback);
return this;
};