Permalink
Browse files

fix(primaryProperty): infinite recursion when used with template cont…

…roller
  • Loading branch information...
jods4 committed Mar 19, 2017
1 parent fae7342 commit 5b5ed56d153f49fa1640ca886097cf0e4a383ee2
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/view-compiler.js
View
@@ -293,6 +293,7 @@ export class ViewCompiler {
let attr;
let attrName;
let attrValue;
let originalAttrName;
let instruction;
let info;
let property;
@@ -319,7 +320,7 @@ export class ViewCompiler {
for (i = 0, ii = attributes.length; i < ii; ++i) {
attr = attributes[i];
attrName = attr.name;
originalAttrName = attrName = attr.name;
attrValue = attr.value;
info = bindingLanguage.inspectAttribute(resources, tagName, attrName, attrValue);
@@ -380,7 +381,7 @@ export class ViewCompiler {
this._configureProperties(instruction, resources);
if (type.liftsContent) { //template controller
instruction.originalAttrName = attrName;
instruction.originalAttrName = originalAttrName;
liftingInstruction = instruction;
break;
} else { //attached behavior
@@ -398,7 +399,7 @@ export class ViewCompiler {
instruction.attributes[resources.mapAttribute(attrName)] = attrValue;
if (type.liftsContent) { //template controller
instruction.originalAttrName = attrName;
instruction.originalAttrName = originalAttrName;
liftingInstruction = instruction;
break;
} else { //attached behavior

0 comments on commit 5b5ed56

Please sign in to comment.