From 5ec7efbd2546e2995a05753c14017cbe04f163e5 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Sun, 25 Jan 2015 02:04:03 -0500 Subject: [PATCH] chore(all): prepare release 0.8.3 --- bower.json | 2 +- dist/amd/binding-language.js | 6 ++++-- dist/commonjs/binding-language.js | 6 ++++-- dist/es6/binding-language.js | 5 +++-- dist/system/binding-language.js | 6 ++++-- doc/CHANGELOG.md | 8 ++++++++ package.json | 2 +- 7 files changed, 25 insertions(+), 10 deletions(-) diff --git a/bower.json b/bower.json index 2655f64..f825e47 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-binding", - "version": "0.8.2", + "version": "0.8.3", "description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.", "keywords": [ "aurelia", diff --git a/dist/amd/binding-language.js b/dist/amd/binding-language.js index 3709e81..dd4bf5f 100644 --- a/dist/amd/binding-language.js +++ b/dist/amd/binding-language.js @@ -244,13 +244,15 @@ define(["exports", "aurelia-templating", "aurelia-binding", "./syntax-interprete source = this.source, valueConverterLookupFunction = this.valueConverterLookupFunction, i, - ii; + 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() : ""; } } diff --git a/dist/commonjs/binding-language.js b/dist/commonjs/binding-language.js index 51c6259..f053a75 100644 --- a/dist/commonjs/binding-language.js +++ b/dist/commonjs/binding-language.js @@ -243,13 +243,15 @@ var InterpolationBinding = (function () { source = this.source, valueConverterLookupFunction = this.valueConverterLookupFunction, i, - ii; + 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() : ""; } } diff --git a/dist/es6/binding-language.js b/dist/es6/binding-language.js index ef855c2..db9cde2 100644 --- a/dist/es6/binding-language.js +++ b/dist/es6/binding-language.js @@ -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() : ''); } } diff --git a/dist/system/binding-language.js b/dist/system/binding-language.js index 40e1fac..ea1e6d7 100644 --- a/dist/system/binding-language.js +++ b/dist/system/binding-language.js @@ -248,13 +248,15 @@ System.register(["aurelia-templating", "aurelia-binding", "./syntax-interpreter" source = this.source, valueConverterLookupFunction = this.valueConverterLookupFunction, i, - ii; + 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() : ""; } } diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index f94c57c..08a42dd 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,11 @@ +### 0.8.3 (2015-01-25) + + +#### Bug Fixes + +* **interpolation-binding:** errors on undefined or null expression eval ([212a13d0](http://github.com/aurelia/templating-binding/commit/212a13d0a13f947e0974e1380af7a3eb82b679eb)) + + ### 0.8.2 (2015-01-24) diff --git a/package.json b/package.json index 806f49e..9f4689b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-binding", - "version": "0.8.2", + "version": "0.8.3", "description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.", "keywords": [ "aurelia",