Skip to content

Commit 54f4c62

Browse files
committed
Bumped version number
1 parent 2f7f2a7 commit 54f4c62

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

angular-ui-router-default.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @link https://github.com/nonplus/angular-ui-router-default
55
*
6-
* @license angular-ui-router-default v0.0.5
6+
* @license angular-ui-router-default v0.0.6
77
* (c) Copyright Stepan Riha <[email protected]>
88
* License MIT
99
*/
@@ -30,7 +30,11 @@ angular.module(moduleName, ['ui.router'])
3030
return fetchTarget();
3131
function fetchTarget() {
3232
var target = $state.get(nextState, $state.$current);
33-
nextState = (target || {}).name;
33+
if (!target) {
34+
// default specification is invalid, let ui-router report the problem...
35+
return transitionTo.call($delegate, nextState, nextParams, nextOptions);
36+
}
37+
nextState = target.name;
3438
var absRedirectPromise = getAbstractRedirect(target);
3539
pendingPromise = absRedirectPromise;
3640
return $q.when(absRedirectPromise)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-ui-router-default",
33
"main": "angular-ui-router-default.js",
4-
"version": "0.0.5",
4+
"version": "0.0.6",
55
"homepage": "https://github.com/nonplus/angular-ui-router-default",
66
"authors": [
77
"Stepan Riha <[email protected]>"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-router-default",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "AngularJS module that adds support for specifying default child views for abstract states when using ui-router.",
55
"main": "angular-ui-router-default.js",
66
"types": "./index.d.ts",

0 commit comments

Comments
 (0)