arbitrary-emitter
Advanced tools
Comparing version 0.7.5 to 0.7.6
@@ -7,2 +7,3 @@ 'use strict' | ||
const oneTrigger = (fn, lis) => { | ||
lis.launch0 = fn | ||
lis.launch1 = fn | ||
@@ -15,2 +16,3 @@ lis.launchX = function () { | ||
const multipleTriggers = (triggers, lis) => { | ||
lis.launch0 = () => triggers.forEach(f => f()) | ||
lis.launch1 = (a, b) => triggers.forEach(f => f(a, b)) | ||
@@ -82,3 +84,3 @@ lis.launchX = function () { | ||
case 1: { | ||
lis.launch1() | ||
lis.launch0() | ||
break | ||
@@ -85,0 +87,0 @@ } |
{ | ||
"name": "arbitrary-emitter", | ||
"version": "0.7.5", | ||
"description": "Hi-Perf event emitter with Map/Set sugar", | ||
"version": "0.7.6", | ||
"description": "Event emitter with Map/Set sugar for modern browsers and node.js", | ||
"main": "arbitrary-emitter.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
arbitrary-emitter | ||
================= | ||
Event emitter with Map/Set sugar for modern browsers and node.js (~500 bytes) | ||
Event emitter with Map/Set sugar for modern browsers and node.js (~500 bytes). [arbitrary-emitter.jacoborus.codes](http://arbitrary-emitter.jacoborus.codes) | ||
@@ -6,0 +6,0 @@ [![Build Status](https://travis-ci.org/jacoborus/arbitrary-emitter.svg?branch=master)](https://travis-ci.org/jacoborus/arbitrary-emitter) [![npm version](https://badge.fury.io/js/arbitrary-emitter.svg)](https://www.npmjs.com/package/arbitrary-emitter) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10982
200