mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 20:35:16 +00:00
Fixed error
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user