PDA

View Full Version : [CLOSED] Corresponding uninit for init in Plugins? Dispose a plugin properly.



CrazyEnigma
10 Jun 2010, 8:53 PM
I am trying to determine if there is a method call to destroy a plugin?

Is there a need or a requirement? I am just wondering if I have bound event listeners from Google Maps, and want to destroy only plug-ins listeners, how would I do that?

I am designing a plugin that will digitize a polygon within Google Maps, but worry that if I don't properly dispose of listeners within the plugin that it will degrade performance.

evant
10 Jun 2010, 10:11 PM
No, you should listen to the beforedestroy/destroy event on the component and unhook anything you need to there.