Bug report
When calling destroy or destroyAll then ptrElement might become visible for a short period of time when its styleEl is messed up (see #119) due to it not getting removed from DOM immediately.
Current behavior:
When calling handler's destroy function then it does not remove ptrElement. It is being removed by onReset which might be called from multiple codepaths. However, in onReset a timeout is being used which in turn might cause a situation where ptrElement is removed from DOM after its handler's destroy has been called many cycles ago (default removal timeout is 500ms for example).
Expected behavior:
ptrElement should be removed immediately when _handler.destroy is been executed to avoid possible problems where handler has been destroyed and its element will be removed later by co-incidence by some timer.
JSFiddle URL for demo with bug:
N/A
Browsers affected:
Every browser
Bug report
When calling
destroyordestroyAllthenptrElementmight become visible for a short period of time when itsstyleElis messed up (see #119) due to it not getting removed from DOM immediately.Current behavior:
When calling handler's
destroyfunction then it does not removeptrElement. It is being removed byonResetwhich might be called from multiple codepaths. However, inonReseta timeout is being used which in turn might cause a situation whereptrElementis removed from DOM after its handler'sdestroyhas been called many cycles ago (default removal timeout is 500ms for example).Expected behavior:
ptrElementshould be removed immediately when_handler.destroyis been executed to avoid possible problems where handler has been destroyed and its element will be removed later by co-incidence by some timer.JSFiddle URL for demo with bug:
N/A
Browsers affected:
Every browser