Commit bd456a51da4c4f7083740cc69df879988b9a3499
1 parent
c1b0c854
Exists in
original-fix-stat
No stat increment if stat name not in config
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
model/stat.js
| @@ -111,7 +111,7 @@ stat.prototype.increment = function(data) { | @@ -111,7 +111,7 @@ stat.prototype.increment = function(data) { | ||
| 111 | if(_.has(this.data, data)) { | 111 | if(_.has(this.data, data)) { |
| 112 | this.data[data]++; | 112 | this.data[data]++; |
| 113 | } | 113 | } |
| 114 | - else this.data[data] = 1; | 114 | + //else this.data[data] = 1; |
| 115 | }; | 115 | }; |
| 116 | 116 | ||
| 117 | /* | 117 | /* |