emitter-component
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "emitter", | ||
"repo": "component/emitter", | ||
"description": "Event emitter", | ||
@@ -8,5 +9,5 @@ "keywords": ["emitter", "events"], | ||
}, | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"scripts": ["index.js"], | ||
"license": "MIT" | ||
} |
@@ -0,3 +1,7 @@ | ||
1.1.0 / 2013-10-20 | ||
================== | ||
1.0.1 / 2013-06-27 | ||
* add `.addEventListener()` and `.removeEventListener()` aliases | ||
1.0.1 / 2013-06-27 | ||
================== | ||
@@ -7,8 +11,8 @@ | ||
1.0.0 / 2013-02-26 | ||
1.0.0 / 2013-02-26 | ||
================== | ||
* add `.off()` support for removing all listeners | ||
* add `.off()` support for removing all listeners | ||
0.0.6 / 2012-10-08 | ||
0.0.6 / 2012-10-08 | ||
================== | ||
@@ -18,3 +22,3 @@ | ||
0.0.5 / 2012-09-07 | ||
0.0.5 / 2012-09-07 | ||
================== | ||
@@ -24,3 +28,3 @@ | ||
0.0.3 / 2012-07-11 | ||
0.0.3 / 2012-07-11 | ||
================== | ||
@@ -31,5 +35,5 @@ | ||
0.0.2 / 2012-06-28 | ||
0.0.2 / 2012-06-28 | ||
================== | ||
* fix `.off()` with `.once()`-registered callbacks |
@@ -48,3 +48,4 @@ | ||
Emitter.prototype.on = function(event, fn){ | ||
Emitter.prototype.on = | ||
Emitter.prototype.addEventListener = function(event, fn){ | ||
this._callbacks = this._callbacks || {}; | ||
@@ -92,3 +93,4 @@ (this._callbacks[event] = this._callbacks[event] || []) | ||
Emitter.prototype.removeListener = | ||
Emitter.prototype.removeAllListeners = function(event, fn){ | ||
Emitter.prototype.removeAllListeners = | ||
Emitter.prototype.removeEventListener = function(event, fn){ | ||
this._callbacks = this._callbacks || {}; | ||
@@ -95,0 +97,0 @@ |
{ | ||
"name": "emitter-component", | ||
"description": "Event emitter", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"dependencies": { | ||
@@ -16,3 +16,7 @@ "indexof": "0.0.1" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/component/emitter.git" | ||
} | ||
} |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
10460
9
325
0