[TIMOB-1686] Android: Unable to have custom proxy properties whose names have uppercase first letters
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:56:52.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.5.0 |
| Components | Android |
| Labels | android, defect |
| Reporter | Bill Dawson |
| Assignee | Bill Dawson |
| Created | 2011-04-15T02:59:23.000+0000 |
| Updated | 2011-04-17T01:56:52.000+0000 |
Description
Example:
var Foo = { bar: function () { return 'baz'; } };
Ti.UI.createWindow({ Foo: Foo, url: 'next.js' });
next.js:
var win = Ti.UI.currentWindow;
var Foo = win.Foo;
Foo.bar();
This fails, because of the way that we treat proxy properties
with uppercase first-letters as something special. It would work if
we made the property to be named foo instead of
Foo. It works in iOS with the uppercase, however. We
should re-engineer our use of the uppercase first-letter of
property names.
(from [3753d69dab1a81f17b3a76c3ebfbf4bb92f691a7]) [#1686 state:fixed-in-qa] Don't give up on loading properties/methods of a KrollObject just because the 'first letter is uppercase' rule of loading a module failed. http://github.com/appcelerator/titanium_mobile/commit/3753d69dab1a81f17b3a76c3ebfbf4bb92f691a7"> http://github.com/appcelerator/titanium_mobile/commit/3753d69dab1a8...
1.4.2.5935b3 g1, 2.2 sim