Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13649] DashboardView fires delete events for all items even when not in edit mode

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2013-04-23T00:20:20.000+0000
Updated2018-02-28T20:04:06.000+0000

Description

According to the [documentation](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.DashboardView-event-delete), the delete event for DashboardView is {quote} Fired when an item is deleted in edit mode. {quote} However, a delete event will be fired for every item in a dashboardview even when not in edit mode. If you, for example, called setData() programmatically to reset the DashboardView, an individual delete event is fired for all items that are going to be replaced, which probably doesn't make sense in the context of a wholesale replace. It is also pretty noisy. In addition, setData() is used by Alloy data binding to reset the dashboard when the model is updated.

Comments

  1. Tim Poulsen 2014-03-20

    I can confirm this bug is still present. Clicking a dashboard item when not in edit mode fires the delete event. It seems also to be fired when existing edit mode (not sure if it fires before or after the commit event).

JSON Source