Update gun.js

This commit is contained in:
Mark Nadal 2016-12-17 14:01:58 -08:00 committed by GitHub
parent 53d5417d4a
commit ef89785525

4
gun.js
View File

@ -2021,8 +2021,8 @@
if(u === data){
return;
}
clearTimeout(ev.to);
if(!to && opt.async){
if(ev.to){ clearTimeout(ev.to) }
if(!to && (true === opt.async) && 0 !== opt.wait){
ev.to = setTimeout(function(){
val.call(opt, at, ev, ev.to || 1)
}, opt.wait || 99);