Merge pull request #526 from marcus7777/patch-2

.val to .once because of it being deprecated
This commit is contained in:
Mark Nadal 2018-04-10 00:19:59 -07:00 committed by GitHub
commit 9f0fbaf2eb
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);
});