uu-z/menhera

$unuse support

uu-z opened this issue · 1 comments

uu-z commented
let a = {
  _hooks: {
    foo: {
      bar: ({ _val }) => console.log(_val)
    }
  }
};

Mhr.$use(a);
Mhr.$use({
  "foo.bar": "hello world"
});
// should print"hello world"

Mhr.$unuse(a);
Mhr.$use({
  "foo.bar": "hello world"
});
// should not work
uu-z commented

done, but currently only support _hooks ~