consul/ui-v2/tests/unit/utils/dom
John Cowen 32387fdbcf ui: Enable creating listeners using an object/hash (#5975)
Makes listening to multiple events on one target slightly easier.
Adding events can be rolled up into passing through an object, and the
returned remove function removes all of the handlers in the object

For example:

```
//this.listen...
const remove = listeners.add(
  {
    'message': handler,
    'error': handler
  }
);
remove(); // removes all listeners in the object
```

The entire API for listeners is now becoming slightly overloaded, so
potentially we'd use this API always and remove the ability to use a
string/function pair.
2019-09-04 08:35:04 +00:00
..
event-source
event-target
click-first-anchor-test.js
closest-test.js
create-listeners-test.js ui: Enable creating listeners using an object/hash (#5975) 2019-09-04 08:35:04 +00:00
get-component-factory-test.js
normalize-event-test.js
qsa-factory-test.js
sibling-test.js