This pull request solves the this.elements[i].destroy() problem.
The program was throwing an error because destroy was missing. therefore I added the check if destroy is available.
if (this.elements[i] && this.elements[i].destroy) { this.elements[i].destroy(); }
This pull request solves the
this.elements[i].destroy()
problem. The program was throwing an error because destroy was missing. therefore I added the check if destroy is available.if (this.elements[i] && this.elements[i].destroy) { this.elements[i].destroy(); }