@mtgame/core 0.0.20 → 0.0.21
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 +9 -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/hockey-game-log.js +10 -1
- package/esm5/models/hockey-game-log.js +10 -1
- package/fesm2015/mtgame-core.js +9 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +9 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-game-log.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2564,6 +2564,15 @@
|
|
|
2564
2564
|
exports.HockeyGameLogTypes.penalty_shot, exports.HockeyGameLogTypes.match_penalty
|
|
2565
2565
|
].indexOf(this.logType) > -1;
|
|
2566
2566
|
};
|
|
2567
|
+
HockeyGameLog.prototype.isAfter = function (log) {
|
|
2568
|
+
if (this.time === log.time && this.period === log.period) {
|
|
2569
|
+
return this.id > log.id;
|
|
2570
|
+
}
|
|
2571
|
+
if (this.period === log.period) {
|
|
2572
|
+
return this.time > log.time;
|
|
2573
|
+
}
|
|
2574
|
+
return this.period > log.period;
|
|
2575
|
+
};
|
|
2567
2576
|
HockeyGameLog.toFront = function (value) { };
|
|
2568
2577
|
HockeyGameLog.toBack = function (value) { };
|
|
2569
2578
|
__decorate([
|