{ "id": "101140", "key": "TIMOB-10915", "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": null, "resolutiondate": null, "created": "2012-09-13T17:38:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "parity", "qe-ios090112", "reprod" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:37.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If a JavaScript array is added to a View as a property of that view, and the push method is called on that array, the push operation will fail to append an element to the array.\r\n\r\nThis is not a regression. This is a parity issue. This does not occur on Android or MobileWeb.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code:\r\n\r\n{code}\r\nvar view = Ti.UI.createView();\r\n\r\nvar standard_array = ['Element 0'];\r\nstandard_array.push('Element 1'); // works\r\nTi.API.info('standard_array == ' + standard_array);\r\n\r\nview.array_property = ['Element 0'];\r\nview.array_property.push('Element 1'); // doesn't work\r\nTi.API.info('view.array_property == ' + view.array_property);\r\n\r\nalert(standard_array + ' == ' + view.array_property);\r\n{code}\r\n\r\nActual Result:\r\n\r\nElement 1 is not pushed to the array attached to the View.\r\n\r\n{code}\r\n> \r\nSep 13 17:34:27 unknown UIKitApplication:com.appcelerator.qeinventory[0xde08][152] : [DEBUG] Reading stylesheet from: /var/mobile/Applications/D40E2327-725E-44BB-AFAD-0C98850835D3/InventoryApp.app/stylesheet.plist\r\nSep 13 17:34:28 unknown UIKitApplication:com.appcelerator.qeinventory[0xde08][152] : [INFO] InventoryApp/1.0 (2.1.3.v20120907163110.9699f0a)\r\nSep 13 17:34:28 unknown UIKitApplication:com.appcelerator.qeinventory[0xde08][152] : [DEBUG] Analytics is enabled = YES\r\nSep 13 17:34:28 unknown UIKitApplication:com.appcelerator.qeinventory[0xde08][152] : [DEBUG] Loading: /var/mobile/Applications/D40E2327-725E-44BB-AFAD-0C98850835D3/InventoryApp.app/app.js, Resource: app_js\r\nSep 13 17:34:28 unknown UIKitApplication:com.appcelerator.qeinventory[0xde08][152] : [INFO] standard_array == Element 0,Element 1\r\nSep 13 17:34:28 unknown UIKitApplication:com.appcelerator.qeinventory[0xde08][152] : [INFO] view.array_property == Element 0\r\nSep 13 17:34:28 unknown kernel[0] : launchd[152] Builtin profile: container (sandbox)\r\nSep 13 17:34:28 unknown kernel[0] : launchd[152] Container: /private/var/mobile/Applications/D40E2327-725E-44BB-AFAD-0C98850835D3 [69] (sandbox)\r\nSep 13 17:34:28 unknown UIKitApplication:com.appcelerator.qeinventory[0xde08][152] : [DEBUG] Application booted in 307.618976 ms\r\n{code}\r\n\r\nExpected Result:\r\n\r\nElement 1 should be pushed to the array attached to the view.", "attachment": [], "flagged": false, "summary": "iOS: cannot push element to array if array is property of view", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.0.0.GA, 2.0.1.GA2, 2.0.2.GA, 2.1.0.GA, 2.1.1.GA, 2.1.2.GA, 2.1.3.v20120907163110, 3.0.0.v20120913113313\r\nTitanium Studio: 2.1.2\r\nOS: Mountain Lion 10.8 w/Xcode 4.4.1\r\nDevices Tested: iPhone/iPad Simulator 5.0/5.1, iPhone4 5.1.1", "comment": { "comments": [ { "id": "244096", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T08:31:08.000+0000", "updated": "2013-03-26T08:31:08.000+0000" }, { "id": "244104", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Current Stable Titanium Studio: 3.0.2.201302191606\nCurrent RC Titanium Studio: 3.1.0.201303240100", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T08:39:35.000+0000", "updated": "2013-03-26T08:39:35.000+0000" }, { "id": "422568", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-22T20:08:21.000+0000", "updated": "2017-06-22T20:08:21.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }