Comparing version 1.0.3 to 1.0.4
'use strict'; | ||
var EventEmitter = function() {} | ||
var EventEmitter = function EventEmitter(){} | ||
, proto = EventEmitter.prototype; | ||
var proto = EventEmitter.prototype; | ||
/** | ||
@@ -58,6 +57,5 @@ * Add a listener for an event. | ||
this._events = this._events || {}; | ||
if(event in this._events === false) { | ||
return this; | ||
if(event in this._events) { | ||
this._events[event].splice(this._events[event].indexOf(listener), 1); | ||
} | ||
this._events[event].splice(this._events[event].indexOf(listener), 1); | ||
return this; | ||
@@ -64,0 +62,0 @@ } |
{ | ||
"name": "emanate", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Event emitter for the browser.", | ||
@@ -5,0 +5,0 @@ "author": "muji <noop@xpm.io>", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
13
0
100
0
7259
7
92
1