xScatta Posted March 24, 2016 Share Posted March 24, 2016 Hey, i have an question. When u attach event ex. onMarkerHit to marker and then if u destroy the marker - is the event removed by itself? Then if it's not and i don't removeEventHandler from it can it lag when i don't remove it from destroyed markers for a couple times? Thanks for answers. Link to comment
Captain Cody Posted March 24, 2016 Share Posted March 24, 2016 I beleive you will have to remove the event. Link to comment
xScatta Posted March 24, 2016 Author Share Posted March 24, 2016 @CodyL so the event is don't removed by itself when i destroy the element attached to it? And then if its don't removed then can it lag when i don't remove it from destroyed markers for a couple times? Link to comment
Captain Cody Posted March 24, 2016 Share Posted March 24, 2016 I'm not quite sure it will cause lag, for it only calls if the marker it was paired with was hit. So it will never really call again. Link to comment
roaddog Posted March 24, 2016 Share Posted March 24, 2016 Yes It is removed. https://forum.multitheftauto.com/viewtopic.php?f ... 08#p722638 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now