{ "id": "91948", "key": "TIMOB-9636", "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": "13574", "description": "Sprint 2012-15 Core", "name": "Sprint 2012-15 Core", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-13T04:43:11.000+0000", "created": "2012-05-17T12:13:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "module_views", "qe-review", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "18947", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "90982", "key": "TIMOB-9085", "fields": { "summary": "iOS: \"this\" value in event listener is set to child component when child component is clicked", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-09-13T04:43:11.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": "h3. Problem\r\n\r\nTitanium Studio's debugger in iOS does not show the \"this\" variable in the Variables view automatically. For Android, it works fine.\r\n\r\nPlease see the attached screenshots", "attachment": [ { "id": "27739", "filename": "Screenshot-Android.png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-17T12:13:18.000+0000", "size": 211925, "mimeType": "image/png" }, { "id": "28105", "filename": "Screenshot-Android(2).png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-01T01:21:33.000+0000", "size": 223299, "mimeType": "image/png" }, { "id": "27740", "filename": "Screenshot-ios.png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-17T12:13:18.000+0000", "size": 166451, "mimeType": "image/png" }, { "id": "28106", "filename": "Screenshot-iOS(2).png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-01T01:21:33.000+0000", "size": 178892, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: \"this\" variable does not occur in variables view in the Studio debugger", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "195454", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sounds like this is an intrinsic platform difference (and out of Studio's control). If the different behavior is desired, please reopen against TIMOB.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T10:00:20.000+0000", "updated": "2012-05-21T10:00:20.000+0000" }, { "id": "195455", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\"this\" shouldn't really be shown in this case, but happens on Android/V8 due to how\r\nwe internally wrap the module's source into a function. This isn't something we will implement\r\nin iOS since it isn't intended behavior.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T10:04:20.000+0000", "updated": "2012-05-21T10:04:20.000+0000" }, { "id": "195982", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Josh,\r\nCan we get clarification on why this isn't intended behavior. We have customers that would like to be able to see properties attached to 'this' in the debugger.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T13:09:35.000+0000", "updated": "2012-05-24T13:09:35.000+0000" }, { "id": "196773", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alan,\r\n\r\nThe only time we should really show \"this\" is when we are inside a function.\r\nIn the screenshot they have \"break\" in the top level scope in app.js. All the globals\r\nare already listed in the variables view. Is there any variables in particular that are missing\r\nthat can be seen when expanding \"this\"? If so that is a bug and they should be listed in the variables view.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-31T14:47:38.000+0000", "updated": "2012-05-31T14:47:38.000+0000" }, { "id": "196825", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Hi,\r\n\r\nI have attached two more screenshots showing the breakpoint inside the function and \"this\" being shown on Android but not on iOS.", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-01T01:21:33.000+0000", "updated": "2012-06-01T01:21:33.000+0000" }, { "id": "198811", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Please review the above comment and confirm if this ticket can be reopened.\r\n\r\nThanks,\r\nVarun", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-15T21:42:34.000+0000", "updated": "2012-06-15T21:42:34.000+0000" }, { "id": "198812", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Varun...It sounds like this should be moved to TIMOB...Studio doesn't control the appearance (or not) of \"this\".", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T21:46:50.000+0000", "updated": "2012-06-15T21:46:50.000+0000" }, { "id": "208215", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4. TESTING\r\n----\r\n\r\nCreate a project with the following:\r\n\r\n{{app.js}}\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n    backgroundColor: '#000',\r\n    navBarHidden: true\r\n});\r\n  \r\nvar view = Ti.UI.createView({ width: '100%', height: '100%', backgroundColor: '#f00' });\r\n  \r\nview.addEventListener('click', function(e){\r\n    Ti.API.info('View click');\r\n    Ti.API.info(this);\r\n});\r\nvar button = Ti.UI.createButton({width:150, height:150, title: 'Click me!' });\r\n \r\nview.add(button);\r\nwin.add(view);\r\n \r\nwin.open();\r\n{code}\r\n\r\nSet breakpoints at:\r\n* Line 10 ({{Ti.API.info(this)}})\r\n* Line 14 ({{view.add(button)}})\r\n\r\nIn the \"debug\" view, add the following to the \"Expressions\" pane:\r\n* this\r\n* this.width\r\n\r\nDebug the app in iPhone simulator:\r\n\r\n# Breakpoint at line 14 should be hit.\r\n#* Should NOT contain \"this\" in variables list\r\n# *Hit CONTINUE*\r\n# Click an element in app (view, button, whatever)\r\n# Breakpoint at line 10 should be hit.\r\n#* Should contain \"this\" in variables list\r\n#* \"this\" should be identical to the source of the event, \"e > source\" (*NOTE*: This will change when TIMOB-9085 is resolved)\r\n#* The \"Expressions\" pane should properly evaluate both \"this\" and \"this.width\" to the correct values", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-17T17:04:05.000+0000", "updated": "2012-07-17T17:05:12.000+0000" }, { "id": "208534", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged https://github.com/appcelerator/titanium_mobile/pull/2592", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T15:37:51.000+0000", "updated": "2012-07-19T15:37:51.000+0000" }, { "id": "214257", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Backport PR https://github.com/appcelerator/titanium_mobile/pull/2737", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-13T22:05:30.000+0000", "updated": "2012-08-13T22:05:30.000+0000" }, { "id": "214512", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed on 2_1_X by https://github.com/appcelerator/titanium_mobile/pull/2737", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T18:32:29.000+0000", "updated": "2012-08-14T18:32:29.000+0000" }, { "id": "214619", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK: 2.1.2.v20120815081613\r\nDevices:\r\nSimulator 5.1", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T12:23:53.000+0000", "updated": "2012-08-15T12:23:53.000+0000" }, { "id": "218786", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels ", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-13T04:42:18.000+0000", "updated": "2012-09-13T04:42:18.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }