🐛Fix level completions analytics string cache

This commit is contained in:
Matt Lott 2015-12-19 21:58:20 -08:00
parent c721d863f8
commit 9466cd7f74

View file

@ -20,7 +20,7 @@ try {
return this.strings[parseInt(index)];
}
StringCache.prototype.set = function(str) {
if (!this.hasOwnProperty(str)) {
if (!this.lookup.hasOwnProperty(str)) {
this.lookup[str] = this.strings.length;
this.strings.push(str);
}