mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -85,12 +85,16 @@ __PluginManager__.register('loggerService', function(module, exports, require, g
|
||||
|
||||
function setObjectValue(log, lvl, key, value, opClass, depth = 3, openDepth = 1, isRoot = true) {
|
||||
var rowChild, isObj = support.isObject(value), id = isObj?support.uniqueId():'',
|
||||
val = (isObj&&depth)?'<label for="'+id+'">'+value+'</label>':value, inp, j,
|
||||
valueString = ((isObj && typeof value.toString !== 'function') || typeof value === 'symbol')?(typeof value):value,
|
||||
val = (isObj&&depth)?'<label for="'+id+'">'+valueString+'</label>':valueString, inp, j,
|
||||
len = isObj?Object.keys(value).length:0;
|
||||
|
||||
if(!isRoot || (isRoot && !isObj)) {
|
||||
log.appendChild(getRowNode(lvl, key, '' + val + (isObj?(' ['+len+']'):''), opClass));
|
||||
}
|
||||
if(value === window || value === document) {
|
||||
return;
|
||||
}
|
||||
if(isObj&&depth) {
|
||||
!isRoot && ++lvl;
|
||||
depth = Math.max(0, depth - 1);
|
||||
|
||||
Reference in New Issue
Block a user