From 97e241926875a737be0a0d1b3af6942bff51fc91 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Thu, 5 Jan 2017 21:36:11 -0800 Subject: [PATCH] chore(all): prepare release 1.1.1 --- bower.json | 2 +- dist/amd/aurelia-router.js | 4 +++- dist/aurelia-router.js | 4 +++- dist/commonjs/aurelia-router.js | 4 +++- dist/es2015/aurelia-router.js | 4 +++- dist/native-modules/aurelia-router.js | 4 +++- dist/system/aurelia-router.js | 4 +++- doc/CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 9 files changed, 30 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 4cf4c995..c201c0f0 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-router", - "version": "1.1.0", + "version": "1.1.1", "description": "A powerful client-side router.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-router.js b/dist/amd/aurelia-router.js index 4e63669f..9d414b9a 100644 --- a/dist/amd/aurelia-router.js +++ b/dist/amd/aurelia-router.js @@ -980,7 +980,9 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depen return this.parent.updateTitle(); } - this.currentInstruction._updateTitle(); + if (this.currentInstruction) { + this.currentInstruction._updateTitle(); + } return undefined; }; diff --git a/dist/aurelia-router.js b/dist/aurelia-router.js index a9d59b56..a58ba6e3 100644 --- a/dist/aurelia-router.js +++ b/dist/aurelia-router.js @@ -1418,7 +1418,9 @@ export class Router { return this.parent.updateTitle(); } - this.currentInstruction._updateTitle(); + if (this.currentInstruction) { + this.currentInstruction._updateTitle(); + } return undefined; } diff --git a/dist/commonjs/aurelia-router.js b/dist/commonjs/aurelia-router.js index 8bf98685..a544b3bd 100644 --- a/dist/commonjs/aurelia-router.js +++ b/dist/commonjs/aurelia-router.js @@ -935,7 +935,9 @@ var Router = exports.Router = function () { return this.parent.updateTitle(); } - this.currentInstruction._updateTitle(); + if (this.currentInstruction) { + this.currentInstruction._updateTitle(); + } return undefined; }; diff --git a/dist/es2015/aurelia-router.js b/dist/es2015/aurelia-router.js index 59ab098a..6113305a 100644 --- a/dist/es2015/aurelia-router.js +++ b/dist/es2015/aurelia-router.js @@ -826,7 +826,9 @@ export let Router = class Router { return this.parent.updateTitle(); } - this.currentInstruction._updateTitle(); + if (this.currentInstruction) { + this.currentInstruction._updateTitle(); + } return undefined; } diff --git a/dist/native-modules/aurelia-router.js b/dist/native-modules/aurelia-router.js index 35fe7b87..34805a25 100644 --- a/dist/native-modules/aurelia-router.js +++ b/dist/native-modules/aurelia-router.js @@ -914,7 +914,9 @@ export var Router = function () { return this.parent.updateTitle(); } - this.currentInstruction._updateTitle(); + if (this.currentInstruction) { + this.currentInstruction._updateTitle(); + } return undefined; }; diff --git a/dist/system/aurelia-router.js b/dist/system/aurelia-router.js index 16788fba..86402097 100644 --- a/dist/system/aurelia-router.js +++ b/dist/system/aurelia-router.js @@ -1389,7 +1389,9 @@ System.register(['aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depende return this.parent.updateTitle(); } - this.currentInstruction._updateTitle(); + if (this.currentInstruction) { + this.currentInstruction._updateTitle(); + } return undefined; }; diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 786c8803..ca1558df 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,13 @@ + +## [1.1.1](https://github.com/aurelia/router/compare/1.1.0...v1.1.1) (2017-01-06) + + +### Bug Fixes + +* **Router:** fix an error when updateTitle is called but there is not current instruction ([872fda1](https://github.com/aurelia/router/commit/872fda1)) + + + # [1.1.0](https://github.com/aurelia/router/compare/1.0.7...v1.1.0) (2016-12-03) diff --git a/package.json b/package.json index f894177b..3412e56f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-router", - "version": "1.1.0", + "version": "1.1.1", "description": "A powerful client-side router.", "keywords": [ "aurelia",