Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.globalCache != null) {
- var cachedScore = this.globalCache["currentScore"];
- if (cachedScore != null) {
- trace("Initializing score from global cache");
- // Can't assign directly to score because of type issues.
- //We restore just the key fields that often aren't transmitted in a heartbeat from controller like AllSport
- score.homeTeamScore = cachedScore.homeTeamScore;
- score.guestTeamScore = cachedScore.guestTeamScore;
- score.period = cachedScore.period;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement