mirror of https://github.com/status-im/consul.git
32387fdbcf
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. |
||
---|---|---|
.. | ||
computed | ||
dom | ||
editor | ||
form | ||
helpers | ||
http | ||
model | ||
routing | ||
search | ||
storage | ||
acls-status.js | ||
ascend.js | ||
atob.js | ||
btoa.js | ||
callable-type.js | ||
confirm.js | ||
createURL.js | ||
distance.js | ||
error.js | ||
get-form-name-property.js | ||
get-object-pool.js | ||
hasStatus.js | ||
injectableRequestToJQueryAjaxHash.js | ||
isFolder.js | ||
keyToArray.js | ||
left-trim.js | ||
makeAttrable.js | ||
minimizeModel.js | ||
promisedTimeout.js | ||
remove-null.js | ||
right-trim.js | ||
sumOfUnhealthy.js | ||
templatize.js | ||
tomography.js | ||
ucfirst.js | ||
update-array-object.js |