|
|
@ -152,14 +152,8 @@ export default class Element extends Node {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Binding relies on Attribute, defer its evaluation
|
|
|
|
// Binding relies on Attribute, defer its evaluation
|
|
|
|
const deferreds = ['Binding'];
|
|
|
|
const order = ['Binding']; // everything else is -1
|
|
|
|
|
|
|
|
info.attributes.sort((a, b) => order.indexOf(a.type) - order.indexOf(b.type));
|
|
|
|
info.attributes.sort((node1, node2) => {
|
|
|
|
|
|
|
|
const deferIndex1 = deferreds.indexOf(node1.type);
|
|
|
|
|
|
|
|
const deferIndex2 = deferreds.indexOf(node2.type);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return deferIndex1 - deferIndex2;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
info.attributes.forEach(node => {
|
|
|
|
info.attributes.forEach(node => {
|
|
|
|
switch (node.type) {
|
|
|
|
switch (node.type) {
|
|
|
|