@mtgame/core 0.0.59 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/mtgame-core.umd.js +6 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/models/football-statistic.js +4 -1
- package/esm2015/models/hockey-statistic.js +4 -1
- package/esm5/models/football-statistic.js +4 -1
- package/esm5/models/hockey-statistic.js +4 -1
- package/fesm2015/mtgame-core.js +6 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +6 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -3040,6 +3040,9 @@
|
|
|
3040
3040
|
});
|
|
3041
3041
|
Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
|
|
3042
3042
|
get: function () {
|
|
3043
|
+
if (!this.gameTime) {
|
|
3044
|
+
return '00:00';
|
|
3045
|
+
}
|
|
3043
3046
|
var minutes = Math.floor(this.gameTime / 60);
|
|
3044
3047
|
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
3045
3048
|
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
@@ -3539,6 +3542,9 @@
|
|
|
3539
3542
|
}
|
|
3540
3543
|
Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
|
|
3541
3544
|
get: function () {
|
|
3545
|
+
if (!this.gameTime) {
|
|
3546
|
+
return '00:00';
|
|
3547
|
+
}
|
|
3542
3548
|
var minutes = Math.floor(this.gameTime / 60);
|
|
3543
3549
|
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
3544
3550
|
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|