{ "id": "98708", "key": "TIMOB-10316", "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": "14172", "description": "Sprint 2012-19 BB", "name": "Sprint 2012-19 BB", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14374", "description": "", "name": "BB Preview 3", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-19T15:29:46.000+0000", "created": "2012-08-06T02:06:12.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T01:02:00.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "If you pass in custom properties when creating a proxy, they are never set on the proxy object.\r\n\r\nh3. Simplified Test Case\r\n{code:javascript}\r\nvar view = Ti.UI.createView({myProperty: 123});\r\nTi.API.info('view.myProperty = ' + view.myProperty);\r\n{code}\r\n\r\nExpected: view.myProperty equals 123\r\nActual: view.myProperty is not defined\r\n\r\nh3. KitchenSink Regression\r\nev.source - should return the Object that fired the event.\r\nIf create a label as \r\nvar label = Ti.UI.createView({backgroundColor:'orange',width:100,height:100,top:10,name:\"view a\"});\r\nThan add 'click' event listener on Label as\r\nlabel.addEventListener('click',function(ev){});\r\nev.source should have name attribut equals to 'view a'. \r\nThis is not working for Blackberry.\r\n\r\nCorresponding code can be found in KS - Resources\\ui\\common\\baseui\\view_event_propagation.js\r\n\r\n", "attachment": [], "flagged": false, "summary": "Blackberry: User defined properties at creation not set on proxy object.", "creator": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Blackberry simulator", "comment": { "comments": [ { "id": "215582", "author": { "name": "jlemieux", "key": "jlemieux", "displayName": "Jean-Philippe Lemieux", "active": true, "timeZone": "America/Montreal" }, "body": "This issue seems to affect all events from all objects", "updateAuthor": { "name": "jlemieux", "key": "jlemieux", "displayName": "Jean-Philippe Lemieux", "active": true, "timeZone": "America/Montreal" }, "created": "2012-08-22T07:57:12.000+0000", "updated": "2012-08-22T07:57:12.000+0000" }, { "id": "219634", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem actually appears to be that user defined properties based at creation are \r\nnot being copied into the object. So later on when you try to access them they are not found.\r\n\r\nh3. Example\r\n{code:javascript}\r\nvar view = Ti.UI.createView({myCustomProperty: '123'});\r\nview.myCustomProperty; // should be '123'\r\n{code}\r\n\r\nExpected: myCustomProperty should equal '123'\r\nActual: myCustomProperty is not defined\r\n", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-18T17:50:48.000+0000", "updated": "2012-09-18T17:50:48.000+0000" }, { "id": "219817", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4. View click event test case.\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar view = Ti.UI.createView({width:100, height: 100, backgroundColor: 'blue', myProperty:123});\r\n\r\nview.addEventListener('click', function(e) {\r\n\tTi.API.info('view.myProperty = ' + e.source.myProperty);\r\n})\r\n\r\nwin.add(view);\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T14:17:28.000+0000", "updated": "2012-09-19T14:17:41.000+0000" }, { "id": "219819", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have seen duplicate \"click\" events firing with the recent R8 upgrade.\r\nCould be a possible regression. If so we should open a new ticket to address it.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T14:18:40.000+0000", "updated": "2012-09-19T14:18:40.000+0000" }, { "id": "408659", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Blackberry is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T01:02:00.000+0000", "updated": "2017-03-03T01:02:00.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }