Comparing version 1.0.7 to 1.0.8
@@ -80,3 +80,5 @@ 'use strict'; | ||
this._events = this._events || {}; | ||
var list = this._events[event] || []; | ||
// NOTE: copy array so that removing listeners in listeners (once etc) | ||
// NOTE: does not affect the iteration | ||
var list = (this._events[event] || []).slice(0); | ||
for(var i = 0; i < list.length; i++) { | ||
@@ -83,0 +85,0 @@ list[i].apply(this, Array.prototype.slice.call(arguments, 1)) |
{ | ||
"name": "emanate", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Event emitter for the browser.", | ||
@@ -5,0 +5,0 @@ "author": "muji <noop@xpm.io>", |
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
9152
92