[TIMOB-24647] Android: Constructor values not set correctly in KrollRuntime
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-19T22:43:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2017-05-02T14:37:27.000+0000 |
Updated | 2017-08-11T02:15:41.000+0000 |
Description
In some cases the initial value of a property will not be set correctly in KrollRuntime, even though they are correct in the Java.
var win = Ti.UI.createWindow({backgroundColor : 'gray', layout: 'vertical'}),
tf = Ti.UI.createTextField({
value: 'TEXT',
passwordMask: true
}),
btn = Ti.UI.createButton({title: 'passwordMask VALUE'});
btn.addEventListener('click', function() {
// passwordMask will be undefined
Ti.API.info('passwordMask: ' + tf.passwordMask);
});
win.add(tf);
win.add(btn);
win.open();
PR https://github.com/appcelerator/titanium_mobile/pull/9005