Permalink
Browse files

fix(ContentNode): Fixed multiple bindings per content node

  • Loading branch information...
calebdwilliams committed Jan 2, 2018
1 parent 7f3f1a9 commit 185e51c00264a870583e913b2d1be7f20fe19d3d
@@ -92,9 +92,9 @@ class AttributeNode {
}
}

update(values, oldValues) {
update(values) {
this.boundAttrs.forEach(attribute => {
const bases = attribute.base.match(/---\!{*.}\!---/g) || [];
const bases = attribute.base.match(/---!{*.}!---/g) || [];
const baseIndicies = bases.map(base => +base.replace('---!{', '').replace('}!---', ''));
let attributeValue = attribute.base;
for (let i = 0; i < baseIndicies.length; i += 1) {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -88,9 +88,9 @@ class AttributeNode {
}
}

update(values, oldValues) {
update(values) {
this.boundAttrs.forEach(attribute => {
const bases = attribute.base.match(/---\!{*.}\!---/g) || [];
const bases = attribute.base.match(/---!{*.}!---/g) || [];
const baseIndicies = bases.map(base => +base.replace('---!{', '').replace('}!---', ''));
let attributeValue = attribute.base;
for (let i = 0; i < baseIndicies.length; i += 1) {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -91,9 +91,9 @@ class AttributeNode {
}
}

update(values, oldValues) {
update(values) {
this.boundAttrs.forEach(attribute => {
const bases = attribute.base.match(/---\!{*.}\!---/g) || [];
const bases = attribute.base.match(/---!{*.}!---/g) || [];
const baseIndicies = bases.map(base => +base.replace('---!{', '').replace('}!---', ''));
let attributeValue = attribute.base;
for (let i = 0; i < baseIndicies.length; i += 1) {
Oops, something went wrong.

0 comments on commit 185e51c

Please sign in to comment.