Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1689] Can't create Picker from XML without 'id' property

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2014-07-18T19:34:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsn/a
ReporterFar
AssigneeSteven Scott
Created2014-07-07T11:34:25.000+0000
Updated2016-03-08T07:38:11.000+0000

Description

<Picker type="Ti.UI.PICKER_TYPE_TIME"/>
compiles into
$.__views.__alloyId227 = Ti.UI.createPicker({
        ...
        id: __alloyId227
    });
instead
$.__views.__alloyId227 = Ti.UI.createPicker({
        ...
        id: "__alloyId227"
    });

Comments

  1. Far 2014-07-07

    Hm, look like picker with any id different to "picker" compiles to such buggy code.
  2. Tim Poulsen 2014-07-18

    Thanks for the ticket. I know yours came in first. I'm going to close this one as a duplicate though because the other one (now ALOY-1091) more clearly described the problem and came with a pull request.

JSON Source