Skip to content

Commit

Permalink
fix(ContentNode): Fixed multiple bindings per content node
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdwilliams committed Jan 2, 2018
1 parent 7f3f1a9 commit 185e51c
Show file tree
Hide file tree
Showing 17 changed files with 122 additions and 123 deletions.
4 changes: 2 additions & 2 deletions dist/templiteral.cjs.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion dist/templiteral.cjs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/templiteral.es.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion dist/templiteral.es.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/templiteral.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 185e51c

Please sign in to comment.