{ "id": "65424", "key": "TIMOB-4216", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-05-25T07:37:52.000+0000", "created": "2011-05-17T09:43:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios" ], "versions": [], "issuelinks": [ { "id": "10607", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "65763", "key": "TIMOB-4217", "fields": { "summary": "Window doesn't assign custom functions", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T17:27:23.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": "After creating a new window and opening it, functions assigned to the window can't be accessed. Properties just work normal, this issue is since 1.7.0.RC1, 1.6.2 worked just fine.\n\nExample:\n\n{code:lang=javascript|title=app.js}\nvar win = Titanium.UI.createWindow({\n\turl: 'foo.js',\n\ttitle: 'Foo',\n\tcustomFunction: function() {\n\t\talert('Test');\n\t},\n\tcustomProperty: 'Property'\n});\n\nwin.open();\n{code}\n\n{code:lang=javascript|title=foo.js}\nvar currentWindow = Titanium.UI.currentWindow;\n\nTi.API.info('currentWindow.customProperty = ' + currentWindow.customProperty);\nTi.API.info('currentWindow.customFunction = ' + currentWindow.customFunction);\n\n\nPrints out the result on 1.7.0.RC1 and iOS Simulator 4.2:\n\n[INFO] currentWindow.customProperty = Property\n[INFO] currentWindow.customFunction = undefined\n\nbut should be (on 1.6.2 and iOS Simulator 4.2):\n\n[INFO] currentWindow.customProperty = Property\n[INFO] currentWindow.customFunction = function () {\n\talert('Test');\n}\n{code}\n", "attachment": [], "flagged": false, "summary": "window doesn't assign custom functions", "creator": { "name": "phx_", "key": "phx_", "displayName": "Simon Lipke", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "phx_", "key": "phx_", "displayName": "Simon Lipke", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium mobilesdk 1.7.0.RC1, Mac OS X, iOS Simulator 4.2", "comment": { "comments": [ { "id": "134028", "author": { "name": "phx_", "key": "phx_", "displayName": "Simon Lipke", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Seems to be fixed in latest builds, thx", "updateAuthor": { "name": "phx_", "key": "phx_", "displayName": "Simon Lipke", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-20T03:23:43.000+0000", "updated": "2011-05-20T03:23:43.000+0000" }, { "id": "416507", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue using the following environment; \r\niPhone 7 (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T17:27:23.000+0000", "updated": "2017-03-31T17:27:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }