Skip to content

Commit

Permalink
fix(view-factory): handle instructions directly on enhanced element
Browse files Browse the repository at this point in the history
Fixes #318
  • Loading branch information
EisenbergEffect committed Jul 5, 2016
1 parent 70e0863 commit b6630a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/view-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,15 @@ export class ViewFactory {
applySurrogateInstruction(container, element, this.surrogateInstruction, controllers, bindings, children);
}

if (createInstruction.enhance && fragment.hasAttribute('au-target-id')) {
instructable = fragment;
instruction = instructions[instructable.getAttribute('au-target-id')];
applyInstructions(containers, instructable, instruction, controllers, bindings, children, shadowSlots, partReplacements, resources);
}

for (i = 0, ii = instructables.length; i < ii; ++i) {
instructable = instructables[i];
instruction = instructions[instructable.getAttribute('au-target-id')];

applyInstructions(containers, instructable, instruction, controllers, bindings, children, shadowSlots, partReplacements, resources);
}

Expand Down

0 comments on commit b6630a9

Please sign in to comment.