Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
82
rated 0 times [  84] [ 2]  / answers: 1 / hits: 77564  / 14 Years ago, tue, october 26, 2010, 12:00:00

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.logs printing things out. It's hosted here.


More From » arrays

 Answers
5

Nope, it's not. But drawnDivs.length = 0 should work.


[#95179] Friday, October 22, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
keyonna

Total Points: 521
Total Questions: 104
Total Answers: 96

Location: Samoa
Member since Tue, May 3, 2022
2 Years ago
;