docs: function (state) {
            // Keep locals around.
            inactiveStates[state.self.name] = state;
            // Notify states they are being Inactivated (i.e., a different
            // sticky state tree is now active).
            state.self.status = 'inactive';
            if (state.self.onInactivate)
              $injector.invoke(state.self.onInactivate, state.self, state.locals.globals);
          }