[AC-934] Gelocation multiple removeEventListener calls will prevent addEventListener
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-03-24T02:16:14.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Studio |
Labels | n/a |
Reporter | Jayme Fishman |
Assignee | Ritu Agrawal |
Created | 2014-02-28T11:25:50.000+0000 |
Updated | 2016-03-08T07:37:14.000+0000 |
Description
I believe this to be a bug but maybe it is an intended feature. If you create a geolocation event listener for 'location' and then remove it more than once you cannot add it back with a single addEventListener call. Example: I had a play, pause, and stop button. Play added the event listener while pause and stop removed it. This cause an issue when the sequence was play, pause, stop (add, remove, remove). I solved the problem by removing the superfluous remove associated with stop. However, I would think that your code would not want to remove an event listener that was not registered or that it would gracefully ignore such a call. I don't think it is - again, perhaps that is by design but just in case it is not I am logging this ticket.
Please provide a simple runnable test case to reproduce this issue.
Resolving this ticket as we have not received any test case to reproduce this issue.