{ "id": "107063", "key": "AC-2149", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2013-01-25T18:37:07.000+0000", "created": "2012-12-24T10:09:51.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-03-08T07:41:08.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Cannot create namespaces with four or more name components (for example, Ti.Contacts.Group.Tizen). setObject returns null instead of an object. If the last dot is changed to an underscore, the code works properly.\r\n\r\nCode example:\r\n\r\n{code}\r\ndefine([\"Ti/_/Evented\", \"Ti/_/lang\", \"Ti/Contacts\"], function(Evented, lang, Contacts) {\r\n \r\n return lang.setObject(\"Ti.Contacts.Group.Tizen\", Evented, {\r\n \r\n test: function() {\r\n console.log('It works');\r\n }\r\n \r\n });\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "Cannot create namespaces more than 3 levels deep", "creator": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "subtasks": [], "reporter": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "environment": "MS Windows, Titanium Studio 3.0.0.201211202053, SDK 3.0.0, Chrome simulator or a Webkit mobile browser", "comment": { "comments": [ { "id": "235955", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I'm unable to reproduce this bug. I ran the following code from Chrome's web inspector and it worked as expected.\r\n\r\n{code}\r\nvar lang = require('Ti/_/lang');\r\nvar Evented = require('Ti/_/Evented');\r\nvar x = lang.setObject(\"Ti.Contacts.Group.Tizen\", Evented, { test: function() { console.log('it works'); } });\r\nconsole.log(Ti.Contacts.Group.Tizen);\r\nTi.Contacts.Group.Tizen.test();\r\n{code}\r\n\r\nWhat browser are you testing in? Is there more to this code example? Why are you pull in \"Ti/Contacts\" if it's not used?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-25T18:37:07.000+0000", "updated": "2013-01-25T18:37:07.000+0000" }, { "id": "236166", "author": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "body": "Thanks, this is no longer reproducable on SDK 3.0.1.v20130114133207.", "updateAuthor": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-01-28T11:24:52.000+0000", "updated": "2013-01-28T11:24:52.000+0000" }, { "id": "287918", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing this issue as it was confirmed by the reporter.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-12T20:07:05.000+0000", "updated": "2014-01-12T20:07:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }