var __alloyId4 = {
type: "Ti.UI.View",
childTemplates: function() {
var __alloyId5 = [];
var __alloyId6 = {
type: "Ti.UI.Label",
bindId: "faultyLabel",
properties: {
left: 12,
text: "dummy text",
backgroundColor: "yellow",
right: 12,
height: 16,
color: "black",
font: {
fontSize: 16,
fontFamily: "Helvetica",
fontWeight: "bold"
},
touchEnabled: false,
customProp: "foobar",
layout: "vertical",
bindId: "faultyLabel"
}
};
__alloyId5.push(__alloyId6);
var __alloyId7 = {
type: "Ti.UI.View",
childTemplates: function() {
var __alloyId8 = [];
var __alloyId9 = {
type: "Ti.UI.Label",
properties: {
left: 12,
width: 150,
text: "Opening Available",
height: 20,
touchEnabled: false,
customProp: "foobar",
layout: "vertical",
bindId: "faultyLabel"
}
};
__alloyId8.push(__alloyId9);
var __alloyId10 = {
type: "Ti.UI.Label",
bindId: "otherViewLabel2",
properties: {
right: 0,
width: 150,
textAlign: "right",
height: 20,
touchEnabled: false,
customProp: "foobar",
layout: "vertical",
bindId: "faultyLabel"
}
};
__alloyId8.push(__alloyId10);
return __alloyId8;
}(),
properties: {
left: 0,
right: 0,
height: 20,
touchEnabled: false,
customProp: "foobar",
layout: "vertical",
bindId: "faultyLabel"
}
};
__alloyId5.push(__alloyId7);
return __alloyId5;
}(),
properties: {
left: 0,
right: 0,
height: Ti.UI.SIZE,
touchEnabled: false,
customProp: "foobar",
layout: "vertical"
}
};
__alloyId3.push(__alloyId4);
var __alloyId2 = {
properties: {
name: "faultyTemplate"
},
childTemplates: __alloyId3
};
__alloyId0["faultyTemplate"] = __alloyId2;
$.__views.section = Ti.UI.createListSection({
id: "section"
});
In this case, the bindId: "faultyLabel" and other properties (customProp="foobar" layout="vertical" touchEnabled="false") are also applied to the children objects of the top view in the ItemTemplate.
var __alloyId10 = {
type: "Ti.UI.Label",
bindId: "otherViewLabel2",
properties: {
right: 0,
width: 150,
textAlign: "right",
height: 20,
touchEnabled: false,
customProp: "foobar",
layout: "vertical",
bindId: "faultyLabel"
}
};
In this case there are two "bindId" , one in the properties and one outside of it. In this case the one outside is correctly