mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
remove console.log
This commit is contained in:
parent
486184e767
commit
e88a120a4e
2
sea.js
2
sea.js
@ -831,7 +831,7 @@
|
||||
const pair = typeof arguments[0] === 'object' && (arguments[0].pub || arguments[0].epub) ? arguments[0] : typeof arguments[1] === 'object' && (arguments[1].pub || arguments[1].epub) ? arguments[1] : null
|
||||
const cb = Array.prototype.slice.call(arguments).filter(arg => typeof arg === 'function')[0] || function(){} // cb now can stand anywhere, after alias/pass or pair
|
||||
const opt = arguments && arguments.length > 1 && typeof arguments[arguments.length-1] === 'object' ? arguments[arguments.length-1] : {} // opt is always the last parameter which typeof === 'object' and stands after cb
|
||||
console.log({alias,pass,pair,cb,opt})
|
||||
|
||||
var gun = this, cat = (gun._), root = gun.back(-1);
|
||||
|
||||
if(cat.ing){
|
||||
|
Loading…
x
Reference in New Issue
Block a user