I'm trying to empty an array containing my drawn coordinates when a button "clear" is pressed.
When I call drawnDivs.clear()
, I get an error that it is not a function. drawnDivs
is certainly an array, and I have Firebug console.log
s printing things out. It's hosted here.
Nope, it's not. But drawnDivs.length = 0
should work.
drawnDivs = [];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With