{ "id": "61346", "key": "TIMOB-714", "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": [ { "id": "11223", "name": "Release 1.3.0", "archived": true, "released": true, "releaseDate": "2010-05-05" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:35:01.000+0000", "created": "2011-04-15T02:35:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T19:12:49.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}

Base UI => Views => Image Views => Basic

\n

logs load event but it never happens

\n

reported from:

\n

http://helpdesk.appcelerator.net/tickets/1767

{html}", "attachment": [], "flagged": false, "summary": "load event does not fire for image view with url", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123874", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

'load' event does happen. It looks like the 'click' event is\ncaught by the table row and not passed along to the imageView in\nthe sample code provided with the helpdesk ticket. I can see if\nclick events can be passed through to subviews from table rows, so\nthat each view fires its own 'click' event.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:35:01.000+0000", "updated": "2011-04-15T02:35:01.000+0000" }, { "id": "123875", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Events are in fact propagated down the view. However, you need\nto perform a few sanity checks. The following code will, in fact,\nwork when clicking on a subelement of a row:

\n
\n// Code to test if you clicked on an image view\n    row.addEventListener ('click', function(e)\n    {\n        Logger.log(\"Source: \"+e.source);\n        if (e.source.url != null) {\n            Logger.log (\"[messages.js:addRow] ***** clicked on \" + e.source.url);\n        }\n        else {\n            Logger.log(\"Clicked elsewhere!\");\n        }\n    });\n
\n

See Base UI->Views->Table View->Layout 2 for more\nexamples about going clicky-clicky on stuff (including a better way\nto test for what type the source is; checking a property that\nexists for the source you want to check for is fuzzy).

\n

Marking as invalid, since it's already fixed. Solution should be\nsent to the customer.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:35:01.000+0000", "updated": "2011-04-15T02:35:01.000+0000" }, { "id": "408413", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T19:12:49.000+0000", "updated": "2017-03-02T19:12:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }