Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var countIn = 0; var countOr = 0; var KEYIN = Object.keys(e.instances); for (var i = KEYIN.length - 1; i >= 0; i--) { e.instances.splice(KEYIN[i],1); console.log("Instance : " + i + " Deleted !"); countIn++; } if (e.orphanInstanceKeyIndex !== undefined) { e.orphanInstanceKeyIndex = 0; } if (e.orphanInstances !== undefined) { var KEYOR = Object.keys(e.orphanInstances); for (var j = KEYOR.length - 1; j >= 0; i--) { e.orphanInstances.splice(KEYOR[j],1); console.log("OrphaneInstance : " + j + " Deleted !"); countOr++; } } console.log("Totale Instance Deleted : " + countIn); console.log("Totale OrphaneInstance Deleted : " + countOr);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement