Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1686] Android: Unable to have custom proxy properties whose names have uppercase first letters

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:52.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T02:59:23.000+0000
Updated2011-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.

Comments

  1. Jeff Haynie 2011-04-15

    (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...

  2. Thomas Huelbert 2011-04-15

    1.4.2.5935b3 g1, 2.2 sim

JSON Source