Skip to content

Commit

Permalink
Bumped version number
Browse files Browse the repository at this point in the history
  • Loading branch information
nonplus committed Oct 13, 2016
1 parent 2f7f2a7 commit 54f4c62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions angular-ui-router-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @link https://github.com/nonplus/angular-ui-router-default
*
* @license angular-ui-router-default v0.0.5
* @license angular-ui-router-default v0.0.6
* (c) Copyright Stepan Riha <[email protected]>
* License MIT
*/
Expand All @@ -30,7 +30,11 @@ angular.module(moduleName, ['ui.router'])
return fetchTarget();
function fetchTarget() {
var target = $state.get(nextState, $state.$current);
nextState = (target || {}).name;
if (!target) {
// default specification is invalid, let ui-router report the problem...
return transitionTo.call($delegate, nextState, nextParams, nextOptions);
}
nextState = target.name;
var absRedirectPromise = getAbstractRedirect(target);
pendingPromise = absRedirectPromise;
return $q.when(absRedirectPromise)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-ui-router-default",
"main": "angular-ui-router-default.js",
"version": "0.0.5",
"version": "0.0.6",
"homepage": "https://github.com/nonplus/angular-ui-router-default",
"authors": [
"Stepan Riha <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-ui-router-default",
"version": "0.0.5",
"version": "0.0.6",
"description": "AngularJS module that adds support for specifying default child views for abstract states when using ui-router.",
"main": "angular-ui-router-default.js",
"types": "./index.d.ts",
Expand Down

0 comments on commit 54f4c62

Please sign in to comment.