{ "id": "76470", "key": "TIMOB-4644", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13401", "description": "Sprint 2012-09 Core", "name": "Sprint 2012-09 Core", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-25T07:42:51.000+0000", "created": "2011-06-15T18:01:05.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "core", "qe-testadded", "view" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T05:46:46.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": "New properties of Titanium.UI.View beginning with \"get\" always link to main object\r\n\r\n{code}\r\nvar myApp = {};\r\n\r\nmyApp.ui = {};\r\n\r\nmyApp.ui.createMyView = function() {\r\n var v = Ti.UI.createView({});\r\n \r\n v.getSomething = function() {\r\n return 100;\r\n };\r\n\r\n v._getSomething = function() {\r\n return 100;\r\n };\r\n \r\n v.getFood = 200;\r\n\r\n return v;\r\n};\r\n\r\nvar myView = myApp.ui.createMyView();\r\nalert(myView.getSomething); // [object TiUIView], shold be function\r\nalert(myView.getSomething()); // nothing, shold be \"100\"\r\nalert(myView._getSomething()); // \"100\" - OK\r\nalert(myView.getFood); // [object TiUIView], shold be 200\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: New properties of Titanium.UI.View beginning with \"get\" always link to main object", "creator": { "name": "myurasov", "key": "myurasov", "displayName": "Mikhail Yurasov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "myurasov", "key": "myurasov", "displayName": "Mikhail Yurasov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on Ti SDK 1.6.2+, iOS SDK 4.2.0+, OSX 10.6.7", "comment": { "comments": [ { "id": "157224", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "In order for us to progress this issue, would you please edit the ticket as follows:\r\n\r\n* state your platform\r\n* state the version of the platform OS/SDK tested\r\n* state what you have tested it on - emulator or device\r\n* state your Titanium SDK version (including date + commit hash)\r\n* use the wiki markup provided, to reformat your code block (surround it with the \\{code\\} macro)\r\n\r\nWhere possible, please use the fields provided for each piece of information\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-20T15:54:38.000+0000", "updated": "2011-06-20T15:55:46.000+0000" }, { "id": "157343", "author": { "name": "myurasov", "key": "myurasov", "displayName": "Mikhail Yurasov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Platform: OS X 10.6.7\r\n\r\n==\r\n\r\nTitanium Studio logs:\r\n\r\n[INFO] Titanium SDK version: 1.7.0\r\n[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 4.3\r\n[INFO] iPhone simulated device: iphone\r\n[DEBUG] executing command: /usr/bin/killall iPhone Simulator\r\n...\r\n[INFO] Launched application in Simulator (1.44 seconds)\r\n[DEBUG] executing command: xcodebuild -version\r\n[DEBUG] Xcode 4.0.2\r\n[DEBUG] Build version 4A2002a\r\n[INFO] Found 4.3.2 patch installed\r\n\r\n==\r\n\r\n/Library/Application Support/Titanium/mobilesdk/version.txt:\r\n\r\nversion=1.7.0\r\ntimestamp=06/06/11 18:05\r\ngithash=64155ee\r\n", "updateAuthor": { "name": "myurasov", "key": "myurasov", "displayName": "Mikhail Yurasov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-21T17:10:26.000+0000", "updated": "2011-06-21T17:14:09.000+0000" }, { "id": "159300", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested: There does appear to be a bug here", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-12T13:38:48.000+0000", "updated": "2011-07-12T13:38:48.000+0000" }, { "id": "165652", "author": { "name": "myurasov", "key": "myurasov", "displayName": "Mikhail Yurasov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The same with properties beginning with \"set\"", "updateAuthor": { "name": "myurasov", "key": "myurasov", "displayName": "Mikhail Yurasov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-12T10:53:08.000+0000", "updated": "2011-09-12T10:53:08.000+0000" }, { "id": "170031", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Reassigning tickets, as per Tony Guntharp's request", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-10-21T07:32:20.000+0000", "updated": "2011-10-21T07:32:20.000+0000" }, { "id": "192319", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated test:\r\n\r\n{code}\r\nvar myApp = {};\r\n \r\nmyApp.ui = {};\r\n \r\nmyApp.ui.createMyView = function() {\r\n    var v = Ti.UI.createView({});\r\n\tv.foo = 100;\r\n  \r\n    v.getSomething = function() {\r\n        return v.foo;\r\n    };\r\n\r\n\tv.setSomething = function(val) {\r\n\t\tv.foo = val;\r\n\t}\r\n     \r\n    v.getFood = 200;\r\n \r\n    return v;\r\n};\r\n \r\nvar myView = myApp.ui.createMyView();\r\n\r\nTi.API.info(myView.getSomething);\r\nTi.API.info(myView.setSomething);\r\nTi.API.info(myView.getFood);\r\nTi.API.info(myView.getFoo);\r\n\r\nTi.API.info(myView.getSomething())l\r\nmyView.setSomething(50);\r\nTi.API.info(myView.getSomething());\r\n\r\nTi.API.info(myView.getFoo());\r\nmyView.setFoo(10);\r\nTi.API.info(myView.getFoo());\r\n{code}\r\n\r\nExpected results:\r\n{code}\r\n[INFO] \r\n[INFO] \r\n[INFO] 200\r\n[INFO] [object TiUIView]\r\n[INFO] 100\r\n[INFO] 50\r\n[INFO] 50\r\n[INFO] 10\r\n{code}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T16:51:28.000+0000", "updated": "2012-04-23T16:51:28.000+0000" }, { "id": "197402", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nVerified as per Stramer's steps.\r\n\r\nSDK: 2.1.0.v20120605140359\r\nStudio: 2.1.0.201206041625\r\nOS: Snow Leopard\r\nXcode: 4.2\r\nDevices Tested: iPhone Simulator 5.0, iPad Simulator 4.3, iPad2 4.3.5", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T15:02:32.000+0000", "updated": "2012-06-05T15:02:32.000+0000" }, { "id": "278604", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4887", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:46:46.000+0000", "updated": "2013-11-07T05:46:46.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }