:zap:🚧 Remove internal socket and improve general structure
This commit is contained in:
@@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user