{ "id": "63578", "key": "TIMOB-2946", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-08-29T14:36:07.000+0000", "created": "2011-04-15T03:33:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "20423", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:55:55.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

I have a DashboardView with some DashboardItems. I would like to\nprevent moving the items. I tried to add an eventListener:

\n
\ndashboard.addEventListener('edit', function(e){\n  e.source.stopEditing();\n});\n
\nThis code leaves the Dashboard in an inconsistent state (see\nattachment).\n

I'm using Apple SDK 4.2 with Titanium SDK 1.5.1.

{html}", "attachment": [ { "id": "18245", "filename": "screen-shot-2011-01-26-at-162837.png", "author": { "name": "martinprebio", "key": "martinprebio", "displayName": "Martin Prebio", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:33:33.000+0000", "size": 273142, "mimeType": "image/png" } ], "flagged": false, "summary": "DashboardView breaks after stopEditing() while moving items", "creator": { "name": "martinprebio", "key": "martinprebio", "displayName": "Martin Prebio", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "martinprebio", "key": "martinprebio", "displayName": "Martin Prebio", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "216898", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "No test case provided, unable to reproduce, ticket marked as invalid.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-29T14:36:07.000+0000", "updated": "2012-08-29T14:36:07.000+0000" }, { "id": "410867", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:55:55.000+0000", "updated": "2017-03-09T22:55:55.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }