{ "id": "111307", "key": "TIMOB-13097", "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": "15487", "description": "2013 Sprint 10 Core", "name": "2013 Sprint 10 Core", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-05-07T21:07:01.000+0000", "created": "2013-03-18T12:57:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "exalture", "supportTeam" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "28487", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "113081", "key": "TIMOB-13620", "fields": { "summary": "Android: Proxies in modules are not disposed correctly", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T16:26:29.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Description\r\nIn custom module there is one method that returns an object of a class that inherits from KrollProxy. In app.js when addEventListener is called on this proxy object it works fine for multiple times but when back button is clicked that leads to homepage and if again application is launched at this time it gives following error :\r\n{code}\r\nE/V8Exception(30249): Exception occurred at app.js:26: Uncaught TypeError: Object # has no method 'addEventListener'\r\n{code}\r\nNote:In this case no annotation is used on class that inherits from krollproxy\r\n(@Kroll.proxy(creatableInModule=SampleModule.class))\r\n\r\nWhile, in other case when the above annotation is used on class inherited from krollproxy (ExampleProxy) and proxy object is created using createExample in \"app.js\" it works fine.\r\n\r\nh2. TestCase\r\n1. Please find the attached \"ReproducibleTestCase.zip\" having custom module and application projects.\r\n2. Import both the projects in Titanium studio and install the module into the application.\r\n3. Install the application and run.\r\n4. Click the button (It will create a custom object using the module, and attach an event listener to it).\r\n5. Press back button of device and again open application and press button this time it will give the following error:\r\n{code}\r\nE/V8Exception(30249): Exception occurred at app.js:26: Uncaught TypeError: Object # has no method 'addEventListener'\r\n{code}", "attachment": [ { "id": "36382", "filename": "ReproducibleTestCase.zip", "author": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T12:58:28.000+0000", "size": 826102, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: In custom module when addEventListener is called on proxy object in app.js gives Uncaught TypeError: Object # has no method 'addEventListener'", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android : 4.0.4", "comment": { "comments": [ { "id": "244233", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "+1. Happening for me too. Same behavior.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-27T01:23:50.000+0000", "updated": "2013-03-27T01:23:50.000+0000" }, { "id": "244615", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Potential workaround: http://billdawson.com/overcoming-timob-13079-in-titanium-android-modules", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-29T00:48:46.000+0000", "updated": "2013-03-29T00:48:46.000+0000" }, { "id": "250636", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T21:07:01.000+0000", "updated": "2013-05-07T21:07:01.000+0000" }, { "id": "413681", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T16:26:29.000+0000", "updated": "2017-03-20T16:26:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }