Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24647] Android: Constructor values not set correctly in KrollRuntime

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2017-07-19T22:43:35.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2017-05-02T14:37:27.000+0000
Updated2017-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();

Comments

  1. Maggie Chen 2017-05-08

    PR https://github.com/appcelerator/titanium_mobile/pull/9005

JSON Source