Comparing version 0.5.4 to 0.5.5
@@ -178,4 +178,9 @@ // Generated by CoffeeScript 1.7.1 | ||
}; | ||
globalEvent.handle = function(cb) { | ||
return masterHandler = cb; | ||
globalEvent.handle = function(message, data, response) { | ||
if (typeof message === "function") { | ||
return masterHandler = message; | ||
} | ||
return masterHandler != null ? masterHandler.call(globalEvent, message, data, function(error, data) { | ||
return response != null ? response.call(globalEvent, message, error, data) : void 0; | ||
}) : void 0; | ||
}; | ||
@@ -182,0 +187,0 @@ globalEvent.send = function(message, data, sendHandle) { |
{ | ||
"name": "partner", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "Child process management. Support to create, manage, interact between child process.", | ||
@@ -5,0 +5,0 @@ "email": "tangkhaiphuong@gmail.com", |
Sorry, the diff of this file is not supported yet
79566
1025