small change in scoremanager
This commit is contained in:
@@ -19,11 +19,7 @@ function LocalScoreManager() {
|
||||
}
|
||||
|
||||
LocalScoreManager.prototype.get = function () {
|
||||
var score = this.storage.getItem(this.key);
|
||||
if (typeof score === "undefined" || score === null) {
|
||||
score = 0;
|
||||
}
|
||||
return score;
|
||||
return this.storage.getItem(this.key) || 0;
|
||||
};
|
||||
|
||||
LocalScoreManager.prototype.set = function (score) {
|
||||
|
||||
Reference in New Issue
Block a user