Skip to content
This repository was archived by the owner on Sep 20, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions release/modular/ct-ui-router-extras.transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ angular.module("ct.ui.router.extras.transition", [ 'ct.ui.router.extras.core' ])

// This event is handled synchronously in transitionTo call stack
$rootScope.$on("$stateChangeStart", function (evt, toState, toParams, fromState, fromParams) {
if (transitionDepth >= tDataStack.length) return;
if (transitionDepth >= tDataStack.length || transitionDepth < 0) return;
var depth = transitionDepth;
// To/From is now normalized by ui-router. Add this information to the transition data object.
var tData = angular.extend(tDataStack[depth], {
Expand All @@ -104,4 +104,4 @@ angular.module("ct.ui.router.extras.transition", [ 'ct.ui.router.extras.core' ])
]
);

})(angular);
})(angular);