Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 21, 2019
1 parent aa63db0 commit 11bdc39
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/utils/templatize.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,14 +578,11 @@ function warnOnUndeclaredProperties(templateInfo, options, methodHost) {
if (!declaredProps[prop] && !(instanceProps && instanceProps[prop])) {
const effects = propertyEffects[prop];
for (let i=0; i<effects.length; i++) {
const {parts} = effects[i].info.binding;
for (let j=0; j<parts.length; j++) {
const part = parts[j];
if (!part.literal && !(part.signature && part.signature.static)) {
console.warn(`Property '${prop}' used in template but not ` +
`declared in 'properties'; attribute will not be observed.`);
break;
}
const {part} = effects[i].info;
if (!part.literal && !(part.signature && part.signature.static)) {
console.warn(`Property '${prop}' used in template but not ` +
`declared in 'properties'; attribute will not be observed.`);
break;
}
}
}
Expand Down

0 comments on commit 11bdc39

Please sign in to comment.