File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -14,25 +14,21 @@ function Transition(routesComponent, path) {
14
14
this . isAborted = false ;
15
15
}
16
16
17
- Transition . prototype = {
18
-
19
- abort : function ( reason ) {
20
- this . abortReason = reason ;
21
- this . isAborted = true ;
22
- } ,
23
-
24
- redirect : function ( to , params , query ) {
25
- this . abort ( new Redirect ( to , params , query ) ) ;
26
- } ,
17
+ Transition . prototype . abort = function ( reason ) {
18
+ this . abortReason = reason ;
19
+ this . isAborted = true ;
20
+ } ;
27
21
28
- wait : function ( value ) {
29
- this . promise = Promise . resolve ( value ) ;
30
- } ,
22
+ Transition . prototype . redirect = function ( to , params , query ) {
23
+ this . abort ( new Redirect ( to , params , query ) ) ;
24
+ } ;
31
25
32
- retry : function ( ) {
33
- this . routesComponent . replaceWith ( this . path ) ;
34
- }
26
+ Transition . prototype . wait = function ( value ) {
27
+ this . promise = Promise . resolve ( value ) ;
28
+ } ;
35
29
30
+ Transition . prototype . retry = function ( ) {
31
+ this . routesComponent . replaceWith ( this . path ) ;
36
32
} ;
37
33
38
34
module . exports = Transition ;
You can’t perform that action at this time.
0 commit comments