Dev: Settings karma test

This commit is contained in:
surunzi
2017-10-01 14:49:02 +08:00
parent c09e0cceca
commit 394728f482
4 changed files with 20 additions and 6 deletions

View File

@@ -20,6 +20,11 @@ export default class Settings extends Tool
this._bindEvent();
}
clear()
{
this._settings = [];
this._$el.html('');
}
switch(config, key, desc)
{
this._settings.push({config, key});