:zap:🚧 Remove internal socket and improve general structure

This commit is contained in:
brunosimon
2017-07-23 01:45:49 +02:00
parent 47dafb763a
commit cfcf81364f
17 changed files with 109 additions and 357 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ class EventEmitter
}
// Resolve names
const names = this.resolveNames(names)
const names = this.resolveNames(_names)
// Each name
names.forEach(function(_name)
@@ -136,7 +136,7 @@ class EventEmitter
let result = null
// Default args
const args = !(args instanceof Array) ? [] : _args
const args = !(_args instanceof Array) ? [] : _args
// Resolve names (should on have one event)
let name = this.resolveNames(_name)
@@ -154,7 +154,7 @@ class EventEmitter
{
that.callbacks[ namespace ][ name.value ].forEach(function(callback)
{
result = callback.apply(that,args)
result = callback.apply(that, args)
if(typeof finalResult === 'undefined')
{