.val to .once because of it being deprecated

This commit is contained in:
Marcus Hitchins 2018-04-09 11:19:57 +01:00 committed by GitHub
parent be0de5cf56
commit 580971c53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ gun.get('mark').get('boss').get('name').val(function(data, key){
});
// traverse a graph of circular references!
gun.get('mark').get('boss').get('slave').val(function(data, key){
gun.get('mark').get('boss').get('slave').once(function(data, key){
console.log("Mark is the slave!", data);
});
@ -87,7 +87,7 @@ gun.get('list').set(gun.get('mark').get('boss'));
gun.get('list').set(gun.get('mark'));
// grab each item once from the table, continuously:
gun.get('list').map().val(function(data, key){
gun.get('list').map().once(function(data, key){
console.log("Item:", data);
});