Remove Async

This commit is contained in:
Ruud
2014-12-18 09:55:58 +01:00
parent 9e96aa14b7
commit b9b77042dc
2 changed files with 4 additions and 966 deletions
+4 -11
View File
@@ -407,19 +407,12 @@
var callbacks = [];
self.global_events[name].each(function(handle){
callbacks.push(function(callback){
setTimeout(function(){
var results = handle.apply(handle, args || []);
callback(null, results || null);
});
});
// Fire events
async.parallel(callbacks, function(err, results){
if(err) p(err);
if(on_complete)
on_complete(results);
if(on_complete)
on_complete(results);
}, 0);
});
},