Skip to content

Commit

Permalink
feat(view-compiler): add element to processAttributes
Browse files Browse the repository at this point in the history
BREAKING CHANGE - If by some rare chance you are using the
processAttributes hook (which I don’t think is publicly documented
yet…mainly because of things like this) we have changed the signature
to include the node that the attributes are related to.

processAttributes(compiler, resources, node, attributes,
elementInstruction);
  • Loading branch information
EisenbergEffect committed May 5, 2016
1 parent dcb04c9 commit d753e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view-compiler.js
Expand Up @@ -294,7 +294,7 @@ export class ViewCompiler {
type = resources.getElement(node.getAttribute('as-element') || tagName);
if (type) {
elementInstruction = BehaviorInstruction.element(node, type);
type.processAttributes(this, resources, attributes, elementInstruction);
type.processAttributes(this, resources, node, attributes, elementInstruction);
behaviorInstructions.push(elementInstruction);
}
}
Expand Down

0 comments on commit d753e67

Please sign in to comment.