{"_id":"@eddieajau/event-dispatcher","_rev":"12-c5d8e3baab8a0eece07accb5992e7168","name":"@eddieajau/event-dispatcher","description":"An event dispatcher for NodeJS.","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"@eddieajau/event-dispatcher","version":"0.1.0","description":"An event dispatcher for NodeJS.","main":"lib/index.js","devDependencies":{"app-root-path":"^1.0.0","istanbul":"^0.3.14","jsdoc-to-markdown":"^1.1.1","jshint":"^2.7.0","mocha":"^2.2.4","sinon":"^1.15.4"},"engines":{"node":">=0.12"},"scripts":{"check":"npm outdated","lint":"jshint lib/ test/","lint:checkstyle":"npm run lint -- --reporter checkstyle > checkstyle.xml","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec test","test":"npm run test:unit","test:unit":"mocha test --no-colors","test:xunit":"npm run test:unit -- --reporter xunit","docs":"jsdoc2md -t jsdoc2md/README.md -d 3 lib/*.js > README.md; echo","patch":"npm version patch && npm publish && git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"keywords":["listener","event","emitter","dispatcher"],"author":{"name":"Andrew Eddie"},"license":"MIT","bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","gitHead":"de49586dd02c64ab647fed8654ff63b38cf62b2c","_id":"@eddieajau/event-dispatcher@0.1.0","_shasum":"4f31f3460e0180f55095951b8ac351072b65571d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.1","_npmUser":{"name":"eddieajau","email":"eddie.andrew@gmail.com"},"dist":{"shasum":"4f31f3460e0180f55095951b8ac351072b65571d","tarball":"https://registry.npmjs.org/@eddieajau/event-dispatcher/-/event-dispatcher-0.1.0.tgz","integrity":"sha512-l66SBCieWz7gMtQ65H40HXje7LCYLiDOsAcBIDa0IFGOw936X6UCCsnfSxPoofwsdCyGcSwxa9KOCDYSPZgWFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDw+ylsIFS4yIvJaOY7Gd/CiOKSPc6t2k1P5UKxkNWbGwIgOw+6p57FIb9pzCCHC2dYyJYhNxbF2WdBYTcJlmSBal8="}]},"maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}]},"0.1.1":{"name":"@eddieajau/event-dispatcher","version":"0.1.1","description":"An event dispatcher for NodeJS.","main":"lib/index.js","devDependencies":{"app-root-path":"^1.0.0","istanbul":"^0.3.14","jsdoc-to-markdown":"^1.1.1","jshint":"^2.7.0","mocha":"^2.2.4","sinon":"^1.15.4"},"engines":{"node":">=0.12"},"scripts":{"check":"npm outdated","lint":"jshint lib/ test/","lint:checkstyle":"npm run lint -- --reporter checkstyle > checkstyle.xml","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec test","test":"npm run test:unit","test:unit":"mocha test --no-colors","test:xunit":"npm run test:unit -- --reporter xunit","docs":"jsdoc2md -t jsdoc2md/README.md -d 3 lib/*.js > README.md; echo","patch":"npm version patch && npm publish && git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"keywords":["listener","event","emitter","dispatcher"],"author":{"name":"Andrew Eddie"},"license":"MIT","bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","gitHead":"fffe7ee93509d58d801e7dfab00da7b553e54947","_id":"@eddieajau/event-dispatcher@0.1.1","_shasum":"4eb598cd631d2e625f6c337268b4f18eb3d43555","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.1","_npmUser":{"name":"eddieajau","email":"eddie.andrew@gmail.com"},"dist":{"shasum":"4eb598cd631d2e625f6c337268b4f18eb3d43555","tarball":"https://registry.npmjs.org/@eddieajau/event-dispatcher/-/event-dispatcher-0.1.1.tgz","integrity":"sha512-ca5Bfsck7ZhBdv0qq/ubXS0gyCBs2sCx5IJ0TJjvRXpXhMk6UWZKfKibpcGC71XhxIrihHWlLX/JXHIm6Bj4Pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5s7uSulkj7oFPGgwPooUcq68oMGJ3ZqVijjxtcRtc/AiEAkvmh3etSuBN9x57pV5HPVxoAnI5EHWANGiQ4HY4oAL8="}]},"maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}]},"0.1.2":{"name":"@eddieajau/event-dispatcher","version":"0.1.2","description":"An event dispatcher for NodeJS.","main":"lib/index.js","devDependencies":{"app-root-path":"^1.0.0","istanbul":"^0.3.14","jsdoc-to-markdown":"^1.1.1","jshint":"^2.7.0","mocha":"^2.2.4","sinon":"^1.15.4"},"engines":{"node":">=0.12"},"scripts":{"check":"npm outdated","lint":"jshint lib/ test/","lint:checkstyle":"npm run lint -- --reporter checkstyle > checkstyle.xml","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec test","test":"npm run test:unit","test:unit":"mocha test --no-colors","test:xunit":"npm run test:unit -- --reporter xunit","docs":"jsdoc2md -t jsdoc2md/README.md -d 3 lib/*.js > README.md; echo","patch":"npm version patch && npm publish && git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"keywords":["listener","event","emitter","dispatcher"],"author":{"name":"Andrew Eddie"},"license":"MIT","bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","gitHead":"4a5304520ef0bad3a99218f3a0f6514b751620a1","_id":"@eddieajau/event-dispatcher@0.1.2","_shasum":"a83eb0e7289384827246550276332dba24c90a86","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.1","_npmUser":{"name":"eddieajau","email":"eddie.andrew@gmail.com"},"dist":{"shasum":"a83eb0e7289384827246550276332dba24c90a86","tarball":"https://registry.npmjs.org/@eddieajau/event-dispatcher/-/event-dispatcher-0.1.2.tgz","integrity":"sha512-pPTXJI9x6nPzdk+mI7YQEcfykFp44BW49qQCtCBfX7KB0KuYJdmwIYmrf5Z7SbJLdhhKVOV/DoyzIml4ODeKag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+5Dlh8aynNZXGTWod+VkW3S3caV/rdwbdPv/AxRwkgwIhANqXT5274/5GpGDrn9NFtB86oc8yv66JM9egYCqRkQdP"}]},"maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}]},"0.2.0":{"name":"@eddieajau/event-dispatcher","version":"0.2.0","description":"An event dispatcher for NodeJS.","main":"lib/index.js","devDependencies":{"app-root-path":"^1.0.0","istanbul":"^0.3.14","jsdoc-to-markdown":"^1.1.1","jshint":"^2.7.0","mocha":"^2.2.4","sinon":"^1.15.4"},"engines":{"node":">=0.12"},"scripts":{"check":"npm outdated","lint":"jshint lib/ test/","lint:checkstyle":"npm run lint -- --reporter checkstyle > checkstyle.xml","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec test","test":"npm run test:unit","test:unit":"mocha test --no-colors","test:xunit":"npm run test:unit -- --reporter xunit","docs":"jsdoc2md -t jsdoc2md/README.md -d 3 lib/*.js > README.md; echo","patch":"npm version patch && npm publish && git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"keywords":["listener","event","emitter","dispatcher"],"author":{"name":"Andrew Eddie"},"license":"MIT","bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","gitHead":"1de50cd14299f6efa694a43a71109d5fad4e028f","_id":"@eddieajau/event-dispatcher@0.2.0","_shasum":"84670324a0a502f732be9d31d0df6e388957b84f","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"eddieajau","email":"eddie.andrew@gmail.com"},"dist":{"shasum":"84670324a0a502f732be9d31d0df6e388957b84f","tarball":"https://registry.npmjs.org/@eddieajau/event-dispatcher/-/event-dispatcher-0.2.0.tgz","integrity":"sha512-LY4YPxky+rp6D55pxcEZliFSyr7c0ucSMJmU1Pj58WTaI8T49gWNM7YCWde2c0Mys3F1lSl47URPglzzIhEBLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDof86gGM1wEZap2tXY9jYEpltSNJn6b7yQyKxYAke0egIgNPHQfvwIrV/6UB+Hyl7fIv4wG63dEe+e0SNn1m0aGBQ="}]},"maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}]},"1.0.0-0":{"name":"@eddieajau/event-dispatcher","version":"1.0.0-0","description":"An event dispatcher for NodeJS.","main":"dist/src/index.js","typings":"dist/src/index","devDependencies":{"app-root-path":"^1.0.0","istanbul":"^0.3.14","jsdoc-to-markdown":"^1.1.1","jshint":"^2.7.0","mocha":"^2.2.4","sinon":"^1.15.4"},"engines":{"node":">=0.12"},"scripts":{"check":"npm outdated","lint":"jshint src/ test/","lint:checkstyle":"npm run lint -- --reporter checkstyle > checkstyle.xml","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec test","test":"npm run test:unit","test:unit":"mocha test --no-colors","test:xunit":"npm run test:unit -- --reporter xunit","docs":"jsdoc2md -t jsdoc2md/README.md -d 3 lib/*.js > README.md; echo","patch":"npm version patch && npm publish && git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"keywords":["listener","event","emitter","dispatcher"],"author":{"name":"Andrew Eddie"},"license":"MIT","bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","gitHead":"5970012aaf73c1931fc735ea2e79778d34bc909e","_id":"@eddieajau/event-dispatcher@1.0.0-0","_shasum":"1f0b8479c4913171dd56bf6131170f4ef95c9047","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"eddieajau","email":"eddie.andrew@gmail.com"},"dist":{"shasum":"1f0b8479c4913171dd56bf6131170f4ef95c9047","tarball":"https://registry.npmjs.org/@eddieajau/event-dispatcher/-/event-dispatcher-1.0.0-0.tgz","integrity":"sha512-nPqOh4c3x/ucV/u8dsYHEdYIj9jGe2wGoEXegn3qIzJWrDJBQWw8WOgP/vPXSo1CpZHihItMaYq6YUjUC1IGcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRm1KP8lKK6q8POMBu9tr/zuJJ0oQZWJx8PpjtErGROQIhAI1w0UZKNXzgTobECQLWiPIfwQMLKX6/dTw95FBKYxVg"}]},"maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}]},"1.0.0-1":{"name":"@eddieajau/event-dispatcher","version":"1.0.0-1","description":"An event dispatcher for NodeJS.","main":"dist/src/index.js","typings":"dist/src/index","devDependencies":{"app-root-path":"^1.0.0","istanbul":"^0.3.14","jsdoc-to-markdown":"^1.1.1","mocha":"^2.2.4","sinon":"^1.15.4"},"engines":{"node":">=0.12"},"scripts":{"check":"npm outdated","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec test","test":"npm run test:unit","test:unit":"mocha test --no-colors","test:xunit":"npm run test:unit -- --reporter xunit","docs":"jsdoc2md -t jsdoc2md/README.md -d 3 lib/*.js > README.md; echo","patch":"npm version patch && npm publish && git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"keywords":["listener","event","emitter","dispatcher"],"author":{"name":"Andrew Eddie"},"license":"MIT","bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","gitHead":"d6723ea02e84b6b1b523d69f6d8a74285da5ed53","_id":"@eddieajau/event-dispatcher@1.0.0-1","_shasum":"80d5d58f2bdcd1119087c9a0663080713d880bab","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"eddieajau","email":"eddie.andrew@gmail.com"},"dist":{"shasum":"80d5d58f2bdcd1119087c9a0663080713d880bab","tarball":"https://registry.npmjs.org/@eddieajau/event-dispatcher/-/event-dispatcher-1.0.0-1.tgz","integrity":"sha512-JxcmPW/QqpoDaTsTWKnO33rz2rwSu1IOCZCf5Kef0O+UCLyrdVNjm3hrdUoBeLemo3wAbxdJtVL83fMDK1wcMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/OKWWfjoQ2TPr3qXStLTWlQ6kG+Cenxyw6iI61h+vfAiBR4Khzc46ETZKAbARVC9WvH3+9LEpubIvjWZVLrqUF/g=="}]},"maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}]},"0.2.1":{"name":"@eddieajau/event-dispatcher","version":"0.2.1","description":"An event dispatcher for NodeJS.","main":"lib/index.js","devDependencies":{"app-root-path":"^1.0.0","istanbul":"^0.3.14","jsdoc-to-markdown":"^1.1.1","jshint":"^2.7.0","mocha":"^2.2.4","sinon":"^1.15.4"},"engines":{"node":">=0.12"},"scripts":{"check":"npm outdated","lint":"jshint lib/ test/","lint:checkstyle":"npm run lint -- --reporter checkstyle > checkstyle.xml","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec test","test":"npm run test:unit","test:unit":"mocha test --no-colors","test:xunit":"npm run test:unit -- --reporter xunit","docs":"jsdoc2md -t jsdoc2md/README.md -d 3 lib/*.js > README.md; echo","patch":"npm version patch && npm publish && git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"keywords":["listener","event","emitter","dispatcher"],"author":{"name":"Andrew Eddie"},"license":"MIT","bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","gitHead":"88673a5e399d41175ecdb81937e47cdc5f8aa241","_id":"@eddieajau/event-dispatcher@0.2.1","_shasum":"3fbc29f6e8c33ca0f3d51f39bb0a8a39855226f6","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"eddieajau","email":"eddie.andrew@gmail.com"},"dist":{"shasum":"3fbc29f6e8c33ca0f3d51f39bb0a8a39855226f6","tarball":"https://registry.npmjs.org/@eddieajau/event-dispatcher/-/event-dispatcher-0.2.1.tgz","integrity":"sha512-y7VSd39ZSM64NW+N2ew9nTzRiJn0EOl32M3wxr52bY0gJTagJ8B2D57wKDI9nj4no32IAvmMbpmLY0Zx7J/ddg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCz+PlnzUtk1wuZlT3wzJJ61B82NqWQ1Ed+y8tuNkYAuwIgCrBhco1B6cEdL8af9vdEEH6eWg2y2un5ZSx0ZWthgtI="}]},"maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}],"_npmOperationalInternal":{"host":"packages-11-east.internal.npmjs.com","tmp":"tmp/event-dispatcher-0.2.1.tgz_1456874117739_0.11151338601484895"}},"0.2.3":{"name":"@eddieajau/event-dispatcher","version":"0.2.3","description":"An event dispatcher for NodeJS.","main":"lib/index.js","devDependencies":{"app-root-path":"^1.0.0","istanbul":"^0.3.14","jsdoc-to-markdown":"^1.1.1","jshint":"^2.7.0","mocha":"^2.2.4","sinon":"^1.15.4"},"engines":{"node":">=0.12"},"scripts":{"check":"npm outdated","lint":"jshint lib/ test/","lint:checkstyle":"npm run lint -- --reporter checkstyle > checkstyle.xml","cover":"istanbul cover node_modules/.bin/_mocha -- -R spec test","test":"npm run test:unit","test:unit":"mocha test --no-colors","test:xunit":"npm run test:unit -- --reporter xunit","docs":"jsdoc2md -t jsdoc2md/README.md -d 3 lib/*.js > README.md; echo","patch":"npm version patch && npm publish && git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"keywords":["listener","event","emitter","dispatcher"],"author":{"name":"Andrew Eddie"},"license":"MIT","bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","gitHead":"2589f1ef72363263143e5d26cc7d5b67291870c9","_id":"@eddieajau/event-dispatcher@0.2.3","_shasum":"e9a257853d9b2fcf0895682251e0bb78dff8e725","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"eddieajau","email":"eddie.andrew@gmail.com"},"dist":{"shasum":"e9a257853d9b2fcf0895682251e0bb78dff8e725","tarball":"https://registry.npmjs.org/@eddieajau/event-dispatcher/-/event-dispatcher-0.2.3.tgz","integrity":"sha512-H8ttSAJJ2riOfM6mxfQLDsr0iaw3uogHysbRvaNjD2sg0HH7yilKdjHk1gj+w5R3Qq4yykS5XqAIsSeCDKvKxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAjARxGNaeukanISc6IGdysRVAweVQdi2Ru9lwFD7Vc5AiEAgCBsj0kREdTxH+wDnuY1joDy3/tgNQj3m6Dmkv7W+hI="}]},"maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/event-dispatcher-0.2.3.tgz_1456898473071_0.0713377462234348"}}},"readme":"[![Build Status](https://travis-ci.org/eddieajau/node-event-dispatcher.svg?branch=master)](https://travis-ci.org/eddieajau/node-config-factory)\n[![Dependency Status](https://gemnasium.com/eddieajau/node-event-dispatcher.svg)](https://gemnasium.com/eddieajau/node-event-dispatcher)\n[![Code Climate](https://codeclimate.com/repos/5592025ce30ba01056016597/badges/2b9fa02abeb784d2193c/gpa.svg)](https://codeclimate.com/repos/5592025ce30ba01056016597/feed)\n\n# event-dispatcher\n\nMany variations of event dispatchers exist for Node. Node even includes its own. However, none of them provide any sort of callback for when the listeners have all finished. This is what makes this package different.\n\n## Installation\n\n```sh\n$ npm install @eddieajau/event-dispatcher\n```\n\n## Example\n\n```js\nvar EventDispatcher = require('@eddieajau/event-dispatcher');\nvar Event = EventDispatcher.Event;\nvar priority = EventDispatcher.priority;\n\nvar dispatcher = new EventDispatcher();\n\ndispatcher.addListener('an-event', function listener1(event, next) {\n  event.foo = 'bar';\n  next();\n}, priority.HIGHEST);\n\ndispatcher.dispatch('an-event')\n  .then(function (event) {\n    console.log(event.foo);\n  })\n  .catch(function (err) {\n    // If next is invoke like `next(err)`, if will reject.\n    console.err(err);\n  });\n```\n\n## Preset priotities\n* `HIGHEST`\n* `HIGHER`\n* `HIGH`\n* `NORMAL`\n* `LOW`\n* `LOWER`\n* `LOWEST`\n\n## Code quality and tests\n\n```sh\n$ npm run lint\n$ npm run test\n```\n\n## API\n<a name=\"EventDispatcher\"></a>\n### EventDispatcher\n**Kind**: global class  \n**See**: [https://github.com/symfony/EventDispatcher/blob/master/EventDispatcherInterface.php](https://github.com/symfony/EventDispatcher/blob/master/EventDispatcherInterface.php)  \n\n* [EventDispatcher](#EventDispatcher)\n  * [new EventDispatcher()](#new_EventDispatcher_new)\n  * _instance_\n    * [.addListener(eventName, callback, [priority])](#EventDispatcher+addListener) ⇒ <code>[EventDispatcher](#EventDispatcher)</code>\n    * [.getListeners(eventName)](#EventDispatcher+getListeners) ⇒ <code>Array.&lt;function()&gt;</code>\n    * [.dispatch(eventName, [event])](#EventDispatcher+dispatch) ⇒ <code>[Event](#Event)</code>\n    * [.emit(eventName)](#EventDispatcher+emit)\n  * _static_\n    * [.Event](#EventDispatcher.Event) : <code>[Event](#Event)</code>\n\n<a name=\"new_EventDispatcher_new\"></a>\n#### new EventDispatcher()\nA class to manage dispatching events and resolving when they are all complete.\n\n<a name=\"EventDispatcher+addListener\"></a>\n#### eventDispatcher.addListener(eventName, callback, [priority]) ⇒ <code>[EventDispatcher](#EventDispatcher)</code>\nAdds an event listener that listens on the specified events.\n\n**Kind**: instance method of <code>[EventDispatcher](#EventDispatcher)</code>  \n**Returns**: <code>[EventDispatcher](#EventDispatcher)</code> - The dispatcher so calls can be chained.  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| eventName | <code>String</code> | The name of the event to listen on. |\n| callback | <code>function</code> | The listener callback |\n| [priority] | <code>integer</code> | The higher this value, the earlier an event                               listener will be triggered in the chain (defaults to 0) |\n\n<a name=\"EventDispatcher+getListeners\"></a>\n#### eventDispatcher.getListeners(eventName) ⇒ <code>Array.&lt;function()&gt;</code>\nGets the listeners of a specific event.\n\n**Kind**: instance method of <code>[EventDispatcher](#EventDispatcher)</code>  \n**Returns**: <code>Array.&lt;function()&gt;</code> - - An array of function listeners (to call).  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| eventName | <code>String</code> | The name of the event. |\n\n<a name=\"EventDispatcher+dispatch\"></a>\n#### eventDispatcher.dispatch(eventName, [event]) ⇒ <code>[Event](#Event)</code>\nDispatches an event to all registered listeners.\n\n**Kind**: instance method of <code>[EventDispatcher](#EventDispatcher)</code>  \n**Returns**: <code>[Event](#Event)</code> - The original event is returned back. It may, however, have been modified by the event listeners.  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| eventName | <code>String</code> | The name of the event to dispatch. |\n| [event] | <code>[Event](#Event)</code> | The event to pass to the event handlers/listeners.                             If not supplied, an empty Event instance is created. |\n\n<a name=\"EventDispatcher+emit\"></a>\n#### eventDispatcher.emit(eventName)\nEmits an event to all registered listeners without returning on completion.\n\nThis is different from `dispatch` in that it doesn't resolve, does not pass an event around and priority is unreliable.\n\n**Kind**: instance method of <code>[EventDispatcher](#EventDispatcher)</code>  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| eventName | <code>String</code> | The name of the event to dispatch. |\n\n<a name=\"EventDispatcher.Event\"></a>\n#### EventDispatcher.Event : <code>[Event](#Event)</code>\n**Kind**: static property of <code>[EventDispatcher](#EventDispatcher)</code>  \n\n<a name=\"Event\"></a>\n### Event\n**Kind**: global class  \n**See**: Based on [https://github.com/symfony/EventDispatcher/blob/master/Event.php](https://github.com/symfony/EventDispatcher/blob/master/Event.php)  \n\n* [Event](#Event)\n  * [new Event()](#new_Event_new)\n  * [.isPropagationStopped()](#Event+isPropagationStopped) ⇒ <code>boolean</code>\n  * [.stopPropagation()](#Event+stopPropagation)\n\n<a name=\"new_Event_new\"></a>\n#### new Event()\nBase event class.\n\nThis class contains no event data. It is used by events that do not pass\nstate information to an event handler when an event is raised.\n\n<a name=\"Event+isPropagationStopped\"></a>\n#### event.isPropagationStopped() ⇒ <code>boolean</code>\nReturns whether event listeners should be triggered.\n\n**Kind**: instance method of <code>[Event](#Event)</code>  \n**Returns**: <code>boolean</code> - Whether propagation was already stopped for this event.  \n<a name=\"Event+stopPropagation\"></a>\n#### event.stopPropagation()\nStops the propagation of the event to further event listeners.\n\nIf multiple event listeners are connected to the same event, no\nfurther event listener will be triggered once any trigger calls\nstopPropagation().\n\n**Kind**: instance method of <code>[Event](#Event)</code>  \n\n## License\n\nMIT\n\n## References\n* http://keepachangelog.com\n* https://github.com/jsdoc2md/jsdoc-to-markdown\n* http://sinonjs.org/docs/#spies\n* Inspired by\n  - [Hoopla](https://github.com/justinhoward/hoopla) by [Justin Howard](https://github.com/justinhoward).\n  - Symfony ([EventDispatcherInterface](https://github.com/symfony/EventDispatcher/blob/master/EventDispatcherInterface.php))\n\n* * *\n\n&copy; 2015 Andrew Eddie. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).\n","maintainers":[{"name":"eddieajau","email":"eddie.andrew@gmail.com"}],"time":{"modified":"2022-06-12T17:28:16.314Z","created":"2015-06-30T02:35:15.208Z","0.1.0":"2015-06-30T02:35:15.208Z","0.1.1":"2015-07-09T07:28:52.458Z","0.1.2":"2015-07-13T00:32:56.469Z","0.2.0":"2015-07-30T05:48:17.173Z","1.0.0-0":"2015-12-12T07:41:52.742Z","1.0.0-1":"2016-01-05T07:36:55.565Z","0.2.2":"2016-03-01T23:12:23.343Z","0.2.1":"2016-03-01T23:15:19.727Z","0.2.3":"2016-03-02T06:01:13.542Z"},"homepage":"https://github.com/eddieajau/node-event-dispatcher#readme","keywords":["listener","event","emitter","dispatcher"],"repository":{"type":"git","url":"git+https://github.com/eddieajau/node-event-dispatcher.git"},"author":{"name":"Andrew Eddie"},"bugs":{"url":"https://github.com/eddieajau/node-event-dispatcher/issues"},"license":"MIT","readmeFilename":"README.md"}