From 0e5ac32603f3a0e608d6d69e75b056cee47e8ee4 Mon Sep 17 00:00:00 2001 From: Steffan Date: Thu, 9 Aug 2018 17:44:55 +0200 Subject: [PATCH] v2.1.1 --- README.md | 4 ++-- dist/vue-event-manager.common.js | 8 ++++---- dist/vue-event-manager.esm.js | 8 ++++---- dist/vue-event-manager.js | 8 ++++---- dist/vue-event-manager.min.js | 4 ++-- package.json | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 3c38f60..7c52925 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ $ npm install vue-event-manager ``` ### CDN -Available on [jsdelivr](https://cdn.jsdelivr.net/npm/vue-event-manager@2.1.0) or [unpkg](https://unpkg.com/vue-event-manager@2.1.0). +Available on [jsdelivr](https://cdn.jsdelivr.net/npm/vue-event-manager@2.1.1) or [unpkg](https://unpkg.com/vue-event-manager@2.1.1). ```html - + ``` ## Example diff --git a/dist/vue-event-manager.common.js b/dist/vue-event-manager.common.js index 3cf7438..74ce1d5 100644 --- a/dist/vue-event-manager.common.js +++ b/dist/vue-event-manager.common.js @@ -1,5 +1,5 @@ /*! - * vue-event-manager v2.1.0 + * vue-event-manager v2.1.1 * https://github.com/pagekit/vue-event-manager * Released under the MIT License. */ @@ -167,13 +167,13 @@ EventManager.prototype.trigger = function trigger (event, params, asynch) { return asynch ? result.then(next, reject) : next(result); }; - var listeners = (this.listeners[_event.name] || []).concat(); - var result = listeners.reduce(reducer, asynch ? Promise.resolve() : undefined); - if (this.log) { this.log.call(this, _event); } + var listeners = (this.listeners[_event.name] || []).concat(); + var result = listeners.reduce(reducer, asynch ? Promise.resolve() : undefined); + return asynch ? result.then(resolve, reject) : resolve(result); }; diff --git a/dist/vue-event-manager.esm.js b/dist/vue-event-manager.esm.js index da4ac92..b171807 100644 --- a/dist/vue-event-manager.esm.js +++ b/dist/vue-event-manager.esm.js @@ -1,5 +1,5 @@ /*! - * vue-event-manager v2.1.0 + * vue-event-manager v2.1.1 * https://github.com/pagekit/vue-event-manager * Released under the MIT License. */ @@ -165,13 +165,13 @@ EventManager.prototype.trigger = function trigger (event, params, asynch) { return asynch ? result.then(next, reject) : next(result); }; - var listeners = (this.listeners[_event.name] || []).concat(); - var result = listeners.reduce(reducer, asynch ? Promise.resolve() : undefined); - if (this.log) { this.log.call(this, _event); } + var listeners = (this.listeners[_event.name] || []).concat(); + var result = listeners.reduce(reducer, asynch ? Promise.resolve() : undefined); + return asynch ? result.then(resolve, reject) : resolve(result); }; diff --git a/dist/vue-event-manager.js b/dist/vue-event-manager.js index ac73735..584ac7c 100644 --- a/dist/vue-event-manager.js +++ b/dist/vue-event-manager.js @@ -1,5 +1,5 @@ /*! - * vue-event-manager v2.1.0 + * vue-event-manager v2.1.1 * https://github.com/pagekit/vue-event-manager * Released under the MIT License. */ @@ -171,13 +171,13 @@ return asynch ? result.then(next, reject) : next(result); }; - var listeners = (this.listeners[_event.name] || []).concat(); - var result = listeners.reduce(reducer, asynch ? Promise.resolve() : undefined); - if (this.log) { this.log.call(this, _event); } + var listeners = (this.listeners[_event.name] || []).concat(); + var result = listeners.reduce(reducer, asynch ? Promise.resolve() : undefined); + return asynch ? result.then(resolve, reject) : resolve(result); }; diff --git a/dist/vue-event-manager.min.js b/dist/vue-event-manager.min.js index e749b89..0286e0c 100644 --- a/dist/vue-event-manager.min.js +++ b/dist/vue-event-manager.min.js @@ -1,7 +1,7 @@ /*! - * vue-event-manager v2.1.0 + * vue-event-manager v2.1.1 * https://github.com/pagekit/vue-event-manager * Released under the MIT License. */ -!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.VueEventManager=n()}(this,function(){"use strict";var u=Object.assign||function(r){var t=[],n=arguments.length-1;for(;0>>0,e=arguments[1],i=0;i>>0,e=arguments[1],i=0;i