Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffan committed Aug 9, 2018
1 parent 682f138 commit 0e5ac32
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ $ npm install vue-event-manager
```

### CDN
Available on [jsdelivr](https://cdn.jsdelivr.net/npm/[email protected].0) or [unpkg](https://unpkg.com/[email protected].0).
Available on [jsdelivr](https://cdn.jsdelivr.net/npm/[email protected].1) or [unpkg](https://unpkg.com/[email protected].1).
```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].0"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1"></script>
```

## Example
Expand Down
8 changes: 4 additions & 4 deletions dist/vue-event-manager.common.js
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down Expand Up @@ -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);
};

Expand Down
8 changes: 4 additions & 4 deletions dist/vue-event-manager.esm.js
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down Expand Up @@ -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);
};

Expand Down
8 changes: 4 additions & 4 deletions dist/vue-event-manager.js
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down Expand Up @@ -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);
};

Expand Down
4 changes: 2 additions & 2 deletions dist/vue-event-manager.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-event-manager",
"version": "2.1.0",
"version": "2.1.1",
"main": "dist/vue-event-manager.common.js",
"module": "dist/vue-event-manager.esm.js",
"unpkg": "dist/vue-event-manager.min.js",
Expand Down

0 comments on commit 0e5ac32

Please sign in to comment.