{ "id": "62593", "key": "TIMOB-1961", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:40.000+0000", "created": "2011-04-15T03:06:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "1.4.2", "change", "d1", "defect", "ios", "iphone", "orientation" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:40.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}

On the iPhone, sdk 4.x and 1.4.2 (and earlier) the orientation\nchange only fires once.

\n

see this ticket for code and history.
\nhttp://developer.appcelerator.com/helpdesk/view/45371

{html}", "attachment": [], "flagged": false, "summary": "Orientation change event only fires once", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127084", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Strongly recommending that the engineering team discuss this\nbehavior. There is a major problem with resolving this bug, namely\nthat we need to make sure that behavior is consistent across both\niPhone and Android platforms when dealing with event listeners at\nthe module level.

\n

Secondly, we will need to retain any possible contexts which\ninvolve event listeners, and listeners will affect ONLY those\ncontexts, i.e. they may not work as expected for variables with the\nsame name across contexts. Resolving this issue could take major\nchanges to how Kroll callbacks work within Titanium and will\nrequire that some critical resources are never released (contexts\nfor closed pages).

\n

Going to mark needs-more-info and begin discussion with\nengineering.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:34.000+0000", "updated": "2011-04-15T03:06:34.000+0000" }, { "id": "127085", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Two separate things here:

\n
    \n
  1. What appears to be at least part of the bug described in the HD\nticket has been confirmed as fixed. Closing a context which\noriginally contained a gesture listener, then adding a new gesture\nlistener in a different context, works as expected. This is bug\n#2048. I have independently confirmed that the\nsample code provided by the customer is functional off of the\nlatest master/HEAD.
  2. \n
  3. The issue described above, handling when module event listeners\ncan be added and how long they should be expected to persist, has\nbeen agreed upon by engineering to have the correct behavior at\npresent.
  4. \n
\n

Marking this ticket resolved as a result.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:35.000+0000", "updated": "2011-04-15T03:06:35.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }