[AC-2149] Cannot create namespaces more than 3 levels deep
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-01-25T18:37:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Yaroslav Pidstryhach |
Assignee | Chris Barber |
Created | 2012-12-24T10:09:51.000+0000 |
Updated | 2016-03-08T07:41:08.000+0000 |
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.
Code example:
define(["Ti/_/Evented", "Ti/_/lang", "Ti/Contacts"], function(Evented, lang, Contacts) {
return lang.setObject("Ti.Contacts.Group.Tizen", Evented, {
test: function() {
console.log('It works');
}
});
});
I'm unable to reproduce this bug. I ran the following code from Chrome's web inspector and it worked as expected.
What browser are you testing in? Is there more to this code example? Why are you pull in "Ti/Contacts" if it's not used?
Thanks, this is no longer reproducable on SDK 3.0.1.v20130114133207.
Closing this issue as it was confirmed by the reporter.