open-consul/ui-v2/tests/unit/utils/dom
John Cowen 011fb8a559 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 ui: Change vocab of ReopenableEventSource from 'reopen' to 'open' (#5973) 2019-09-04 08:35:02 +00:00
event-target UI: Add EventSource ready for implementing blocking queries (#5070) 2019-05-01 18:22:06 +00:00
click-first-anchor-test.js ui: Allow text selection of clickable elements and their contents (#5770) 2019-09-04 08:34:58 +00:00
closest-test.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
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 UI: dom usage refactoring (#4924) 2019-05-01 18:21:40 +00:00
normalize-event-test.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
qsa-factory-test.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00
sibling-test.js UI: New ACLs (#4789) 2018-10-19 08:45:05 -07:00