event-actions
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -41,3 +41,3 @@ "use strict"; | ||
// emit action event, callback(target, action, arguments) | ||
this.emit('action', target, parts.slice(-1), args); | ||
this.emit('action', target, parts.slice(-1)[0], args); | ||
@@ -55,3 +55,3 @@ // pass through | ||
// emit event event, callback(target, event, arguments) | ||
this.emit('event', target, parts.slice(-1), args); | ||
this.emit('event', target, parts.slice(-1)[0], args); | ||
@@ -58,0 +58,0 @@ // pass through |
{ | ||
"name": "event-actions", | ||
"description": "Application level event and action emitter", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -155,3 +155,3 @@ # EventActions | ||
``` | ||
```javascript | ||
var A = new EventActions(); | ||
@@ -158,0 +158,0 @@ var B = new EventActions(); |
14619