diff options
Diffstat (limited to 'features/settings/settingThings/FakeRequireToggle.js')
-rw-r--r-- | features/settings/settingThings/FakeRequireToggle.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/features/settings/settingThings/FakeRequireToggle.js b/features/settings/settingThings/FakeRequireToggle.js deleted file mode 100644 index 41932f3..0000000 --- a/features/settings/settingThings/FakeRequireToggle.js +++ /dev/null @@ -1,27 +0,0 @@ - -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 - } -} - -export default FakeRequireToggle
\ No newline at end of file |