Skip to content
Advertisement

deleting a label after a given time period

I am trying to delete a label after a given time period but I am getting an error which I understand

here’s the code which is giving the error

JavaScript

and heres the error

JavaScript

how can I delete the label ??

Advertisement

Answer

As the error said, the label has already been destroyed when update() is triggered/executed by .after(). So you should not schedule to call update() after the label is destroyed:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement