remove json as a global
This commit is contained in:
@@ -2,14 +2,14 @@ return {
|
||||
test_contact: function() {
|
||||
function contact_fn(actor,reason) {
|
||||
if (actor) {
|
||||
log.console(`Got an actor: ${json.encode(actor)}`)
|
||||
log.console(`Got an actor: ${actor}`)
|
||||
|
||||
send(actor, {greet: "Hello!"}, e => {
|
||||
log.console(`Got the response ${json.encode(e)}. Goodbye!`);
|
||||
log.console(`Got the response ${e}. Goodbye!`);
|
||||
})
|
||||
}
|
||||
else
|
||||
log.console(`Did not get an actor: ${json.encode(reason)}`)
|
||||
log.console(`Did not get an actor: ${reason}`)
|
||||
}
|
||||
|
||||
$_.contact(contact_fn,
|
||||
|
||||
Reference in New Issue
Block a user