sushil1989
sushil1989

Reputation: 101

how to retrieve elements in raphael's set

I am using raphael.s library to draw some shapes on canvas.I have combined different elements in set.I want to know that how to retrieve these elements using for loop on raphael's set.

Upvotes: 4

Views: 1569

Answers (1)

Kevin Nielsen
Kevin Nielsen

Reputation: 4433

Jadkik94's suggestion is better -- using set.forEach() is more likely to be forward compatible with future versions of Raphael.

Upvotes: 3

Related Questions