{ "id": "144829", "key": "AC-896", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-06-26T23:03:38.000+0000", "created": "2015-02-17T09:58:03.000+0000", "labels": [ "imageView", "load" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:12.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "{code:title=app.js|borderStyle=solid}\r\nvar image = Ti.UI.createImageView({image:\"http://...\"});\r\n \r\nfunction saveImage(e) { \r\n image.removeEventListener('load', saveImage);\r\n Ti.API.info('>>> image loaded');\r\n}\r\n\r\nimage.addEventListener('load', saveImage);\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: imageView not trigger 'load' event if imageView was not added to the window", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Titanium SDK 3.4.1.GA, Android Genymotion 4.2.2/4.4.2", "comment": { "comments": [ { "id": "348697", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "HI Andrey,\r\n\r\nThis is normal behaviour. If you do not add the imageView to window, that means you only define it, but never use it. That why \"load\" event not load.\r\nOtherwise, the imageView will cost memory to load it but you never use it. It just waste memory. ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-04-07T00:23:38.000+0000", "updated": "2015-04-07T00:23:38.000+0000" }, { "id": "348734", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "I use it to manipulate image (usually in the commonjs module). It is normal behavior for developer. Then add final image to the target window. Now I have to create temporary window that overflow top of my UI with breaking user interaction some seconds and blink artefacts of show/hide top level window.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-04-07T06:59:37.000+0000", "updated": "2015-04-07T07:02:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }