mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +00:00
Fixed error
This commit is contained in:
parent
7f22b6004c
commit
dd9442b2e6
@ -146,6 +146,9 @@ function clearObject(object){
|
|||||||
//Process each node of the object
|
//Process each node of the object
|
||||||
for(i in object){
|
for(i in object){
|
||||||
|
|
||||||
|
if(!object[i])
|
||||||
|
continue;
|
||||||
|
|
||||||
//Check if the node is an object
|
//Check if the node is an object
|
||||||
if(object[i].toString() === "[object Object]"){
|
if(object[i].toString() === "[object Object]"){
|
||||||
clearObject(object[i]); //Delete object content
|
clearObject(object[i]); //Delete object content
|
||||||
|
Loading…
Reference in New Issue
Block a user