children_update(){
if(!this.children.length){
return;
}
var inst,wi;
for (var i = 0, l= this.children.length; i < l; i++) {
inst = this.children[i];
wi = inst.GetWorldInfo();
//updating the child's global coordinates when the parent global coordinates changes.
wi.SetXY(wi.GetX(),wi.GetY());
wi.SetAngle(wi.GetAngle());
wi.SetBboxChanged();
}
}
children_update() {
if (this.children.length)
for (var e = 0, t = this.children.length, a, n; void 0 > e; e++) a = this.children[e], n = a.GetWorldInfo(), n.SetXY(n.GetX(), n.GetY()), n.SetAngle(n.GetAngle()), n.SetBboxChanged()
}
the void 0 > e is breaking my code, the loop does not work.
Also, when I put some console.log before the loop and inside it. The loop is minifed correclty; no more void 0 > e.
So what's going on ? thanks.