{ "id": "116195", "key": "TIMOB-14295", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T19:10:12.000+0000", "created": "2013-06-19T19:35:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:41.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h2. problem\r\n\r\nOn Mobileweb, if I assign {{null}} to a proxy property and then attempt to access that property, it will return {{undefined}}. This is a parity issue as under the same circumstances iOS and Android will return {{null}}. This was uncovered during Alloy unit testing of adding/removing style classes on proxy objects.\r\n\r\nh2. expected\r\n\r\nWhen a Titanium proxy object is assigned a property with the value of {{null}}, accessing that property should also return {{null}}, not {{undefined}}.\r\n\r\nh2. test case\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\tfullscreen: false,\r\n\texitOnClose: true,\r\n\ttop: null\r\n});\r\nwin.open();\r\n\r\nTi.API.info(JSON.stringify(win.top));\r\n{code}\r\n\r\nh2. output\r\nh4. iOS 6.1 iPhone sim\r\n{code}\r\n[INFO] null\r\n{code}\r\n\r\nh4. Android 2.3.3 HVGA emulator\r\n{code}\r\nI/TiAPI ( 678): null\r\n{code}\r\n\r\nh4. Mobileweb + chrome\r\n{code}\r\n[INFO] undefined\r\n{code}", "attachment": [], "flagged": false, "summary": "Mobileweb: properties set to \"null\" are assigned as \"undefined\" on proxy objects", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.1.GA\r\nMobileweb + chrome\r\nAndroid 2.3.3 HVGA emulator\r\niOS 6.1 iPhone sim", "comment": { "comments": [ { "id": "422800", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T19:10:12.000+0000", "updated": "2017-06-26T19:10:12.000+0000" }, { "id": "436471", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:41.000+0000", "updated": "2018-04-04T23:20:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }