Fixed error

This commit is contained in:
Pierre 2017-06-25 19:14:34 +02:00
parent 7f22b6004c
commit dd9442b2e6

View File

@ -146,6 +146,9 @@ function clearObject(object){
//Process each node of the object
for(i in object){
if(!object[i])
continue;
//Check if the node is an object
if(object[i].toString() === "[object Object]"){
clearObject(object[i]); //Delete object content