problem
On Mobileweb, if I assign
null
to a proxy property and then attempt to access that property, it will return
undefined
. This is a parity issue as under the same circumstances iOS and Android will return
null
. This was uncovered during Alloy unit testing of adding/removing style classes on proxy objects.
expected
When a Titanium proxy object is assigned a property with the value of
null
, accessing that property should also return
null
, not
undefined
.
test case
var win = Ti.UI.createWindow({
backgroundColor: '#fff',
fullscreen: false,
exitOnClose: true,
top: null
});
win.open();
Ti.API.info(JSON.stringify(win.top));
output
iOS 6.1 iPhone sim
[INFO] null
Android 2.3.3 HVGA emulator
I/TiAPI ( 678): null
Mobileweb + chrome
[INFO] undefined
Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.