aboutsummaryrefslogtreecommitdiff
path: root/features/lockedFeatures/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/lockedFeatures/index.js')
-rw-r--r--features/lockedFeatures/index.js26
1 files changed, 1 insertions, 25 deletions
diff --git a/features/lockedFeatures/index.js b/features/lockedFeatures/index.js
index 04ac729..0226859 100644
--- a/features/lockedFeatures/index.js
+++ b/features/lockedFeatures/index.js
@@ -6,6 +6,7 @@ import SoopyV2Server from "../../socketConnection"
import HudTextElement from "../hud/HudTextElement";
import LocationSetting from "../settings/settingThings/location";
import { numberWithCommas, timeNumber2, timeSince } from "../../utils/numberUtils";
+import FakeRequireToggle from "../settings/settingThings/FakeRequireToggle";
class LockedFeatures extends Feature {
constructor() {
@@ -102,28 +103,3 @@ class LockedFeatures extends Feature {
module.exports = {
class: new LockedFeatures()
}
-
-class FakeRequireToggle{
- constructor(val){
- this.val = val
-
- this.thisToggleEvents = []
-
- this.toggleObject = {
- addEvent: (event)=>{
- this.thisToggleEvents.push(event)
- }
- }
- }
-
- set(newVal){
- if(this.val === newVal) return
- this.val = newVal
-
- this.thisToggleEvents.forEach(e=>e._trigger(this, [this.val]))
- }
-
- getValue(){
- return this.val
- }
-} \ No newline at end of file