Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
32 lines
1 KiB
TypeScript
32 lines
1 KiB
TypeScript
// Module ID: 15757
|
|
// Function ID: 15758
|
|
// Name: DevSettingsActions
|
|
// Dependencies: [4606, 573, 2]
|
|
// Exports: clearAll, toggle
|
|
|
|
// Module 15757 (DevSettingsActions)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import DevSettingsStore from "DevSettingsStore" /* 4606 */;
|
|
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/devtools/dev_settings/DevSettingsActions.tsx");
|
|
|
|
export const toggle = function toggle(toggle, flag) {
|
|
let tmp = flag;
|
|
if (typeof flag !== "boolean") {
|
|
tmp = !DevSettingsStore.get(toggle);
|
|
}
|
|
DispatcherDefault.dispatch({ type: "DEV_TOOLS_DEV_SETTING_SET", toggle, value: tmp });
|
|
};
|
|
export const clearAll = function clearAll() {
|
|
for (const key10005 in DevSettingsStore.enabled()) {
|
|
let flag = false;
|
|
if (typeof false !== "boolean") {
|
|
flag = !DevSettingsStore.get(key10005);
|
|
}
|
|
let obj = DispatcherDefault;
|
|
let obj2 = { type: "DEV_TOOLS_DEV_SETTING_SET", toggle: key10005, value: flag };
|
|
let dispatchResult = obj.dispatch(obj2);
|
|
continue;
|
|
}
|
|
};
|