1 |
|
2 |
|
3 |
|
4 |
|
5 | import { StateParams } from "./params/stateParams";
|
6 | import { Queue } from "./common/queue";
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | var UIRouterGlobals = (function () {
|
14 | function UIRouterGlobals() {
|
15 | |
16 |
|
17 |
|
18 |
|
19 |
|
20 | this.params = new StateParams();
|
21 |
|
22 | this.lastStartedTransitionId = -1;
|
23 |
|
24 | this.transitionHistory = new Queue([], 1);
|
25 |
|
26 | this.successfulTransitions = new Queue([], 1);
|
27 | }
|
28 | UIRouterGlobals.prototype.dispose = function () {
|
29 | this.transitionHistory.clear();
|
30 | this.successfulTransitions.clear();
|
31 | this.transition = null;
|
32 | };
|
33 | return UIRouterGlobals;
|
34 | }());
|
35 | export { UIRouterGlobals };
|
36 |
|
\ | No newline at end of file |