Skip to content

Commit

Permalink
fix(interpolation-binding): errors on undefined or null expression eval
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 25, 2015
1 parent 0cc84e8 commit 212a13d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/binding-language.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,14 @@ class InterpolationBinding {
parts = this.parts,
source = this.source,
valueConverterLookupFunction = this.valueConverterLookupFunction,
i, ii;
i, ii, temp;

for(i = 0, ii = parts.length; i < ii; ++i){
if (i % 2 === 0) {
value += parts[i];
} else {
value += parts[i].evaluate(source, valueConverterLookupFunction).toString();
temp = parts[i].evaluate(source, valueConverterLookupFunction);
value += (temp ? temp.toString() : '');
}
}

Expand Down

0 comments on commit 212a13d

Please sign in to comment.