Sfoglia il codice sorgente

Deep-freeze the remaining configuration objects

Since I did not explain deep-freezing in the last commit..it essentially
makes an entire object read-only, meaning that instead of mangling important
data, badly written code will throw an error!
tags/v0.0.6
Fen Dweller 5 anni fa
parent
commit
158a17b5fa
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: E80B35A6F11C3656
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. +7
    -0
      constants.js

+ 7
- 0
constants.js Vedi File

@@ -1225,3 +1225,10 @@ const powerups = {
}
}
}

deepFreeze(prodUpgradeText);
deepFreeze(prodAllUpgradeText);
deepFreeze(clickUpgradeText);
deepFreeze(helperUpgradeText);
deepFreeze(clickVictimUpgradeText);
deepFreeze(powerupFreqUpgradeText);

Loading…
Annulla
Salva