1
0
mirror of synced 2025-12-17 12:55:08 +08:00

Dev: Add Settings createCfg and change eslint semi rule

This commit is contained in:
surunzi
2017-11-18 16:52:20 +08:00
parent 829f1b1af2
commit 53af31ced6
31 changed files with 698 additions and 145 deletions

View File

@@ -1,5 +1,6 @@
import Tool from '../DevTools/Tool'
import util from '../lib/util'
import Tool from '../DevTools/Tool';
import util from '../lib/util';
import Settings from '../Settings/Settings';
export default class Resources extends Tool
{
@@ -303,12 +304,10 @@ export default class Resources extends Tool
}
_initCfg()
{
let cfg = this.config = util.createCfg('resources');
cfg.set(util.defaults(cfg.get(), {
let cfg = this.config = Settings.createCfg('resources', {
hideErudaSetting: true,
observeElement: true
}));
});
if (cfg.get('hideErudaSetting')) this._hideErudaSetting = true;
if (!cfg.get('observeElement')) this._observeElement = false;
@@ -392,7 +391,7 @@ export default class Resources extends Tool
}
return false;
}
};
if (mutation.type === 'attributes')
{