[ EventController: 5 ] destroy() method

2 views
Skip to first unread message

gary

unread,
Apr 23, 2010, 10:49:25 AM4/23/10
to EventController
Should there be a destroy method in LEC so that all the memory can be
freed?

--
--
http://fla.as/ec

Subscription settings: http://groups.google.com/group/eventcontroller/subscribe?hl=en
Message has been deleted

Ben Fhala

unread,
Apr 26, 2010, 12:43:56 PM4/26/10
to eventco...@googlegroups.com
in a way you have something similar to destroy:

lec.remove(new RegExp(""));
lec.log();

would remove everything
and then you can delete your variable and your good to go.


i'm wondering if maybe we should create a new API method as it does sound like something many people would want to do but in the backend of it it would be basically the same thing as what i have up in the line above
we are searching through all the cluster and removing everything by sending it a RegExp that would always be true.


Thanks so much for the feedback its a good point i'll add it to my list of things to follow ;)
p.s. what peoples thoughts on this should we add a new method or keep it minimal as long as there is accesses to do it ?

--
--
http://fla.as/ec

corbanb

unread,
Apr 26, 2010, 12:45:35 PM4/26/10
to EventController
good call gary! ben and I just talked about it. very easy to add.
Thanks for the heads up!



On Apr 23, 10:49 am, gary <elmo...@gmail.com> wrote:
> Should there be a destroy method in LEC so that all the memory can be
> freed?
>
> --
> --http://fla.as/ec
>
> Subscription settings:http://groups.google.com/group/eventcontroller/subscribe?hl=en

--
--
http://fla.as/ec
Reply all
Reply to author
Forward
0 new messages