Titanium JIRA Archive
Appcelerator Community (AC)

[AC-934] Gelocation multiple removeEventListener calls will prevent addEventListener

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-03-24T02:16:14.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsn/a
ReporterJayme Fishman
AssigneeRitu Agrawal
Created2014-02-28T11:25:50.000+0000
Updated2016-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.

Comments

  1. Ritu Agrawal 2014-03-17

    Please provide a simple runnable test case to reproduce this issue.
  2. Ritu Agrawal 2014-03-24

    Resolving this ticket as we have not received any test case to reproduce this issue.

JSON Source