Add: Container test

This commit is contained in:
surunzi
2017-11-05 11:31:09 +08:00
parent 9917383830
commit a38006fe49
6 changed files with 32 additions and 19 deletions

View File

@@ -53,8 +53,8 @@ export default class DevTools extends util.Emitter
}
add(tool)
{
let {init, show, hide} = new Tool();
util.defaults(tool, {init, show, hide});
let {init, show, hide, destroy} = new Tool();
util.defaults(tool, {init, show, hide, destroy});
let name = tool.name;
if (!name) return logger.error('You must specify a name for a tool');