Permalink
Browse files

Merge branch 'release/4.2.7'

  • Loading branch information...
Olical committed Dec 29, 2013
2 parents 96cc268 + 85844f5 commit 9554a8f3b29621902ddbd436f4de4801a8f08168
Showing with 8 additions and 8 deletions.
  1. +3 −3 EventEmitter.js
  2. +2 −2 EventEmitter.min.js
  3. +1 −1 bower.json
  4. +1 −1 component.json
  5. +1 −1 package.json
View
@@ -1,5 +1,5 @@
/*!
- * EventEmitter v4.2.6 - git.io/ee
+ * EventEmitter v4.2.7 - git.io/ee
* Oliver Caldwell
* MIT license
* @preserve
@@ -69,7 +69,7 @@
// Return a concatenated array of all matching events if
// the selector is a regular expression.
- if (typeof evt === 'object') {
+ if (evt instanceof RegExp) {
response = {};
for (key in events) {
if (events.hasOwnProperty(key) && evt.test(key)) {
@@ -322,7 +322,7 @@
// Remove all listeners for the specified event
delete events[evt];
}
- else if (type === 'object') {
+ else if (evt instanceof RegExp) {
// Remove all events matching the regex.
for (key in events) {
if (events.hasOwnProperty(key) && evt.test(key)) {
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "eventEmitter",
"description": "Event based JavaScript for the browser",
- "version": "4.2.6",
+ "version": "4.2.7",
"main": [
"./EventEmitter.js"
],
View
@@ -2,7 +2,7 @@
"name": "eventEmitter",
"repo": "Wolfy87/EventEmitter",
"description": "Event based JavaScript for the browser.",
- "version": "4.2.6",
+ "version": "4.2.7",
"scripts": ["EventEmitter.js"],
"main": "EventEmitter.js",
"license": "MIT"
View
@@ -1,6 +1,6 @@
{
"name": "wolfy87-eventemitter",
- "version": "4.2.6",
+ "version": "4.2.7",
"description": "Event based JavaScript for the browser",
"main": "EventEmitter.js",
"directories": {

0 comments on commit 9554a8f

Please sign in to comment.