@@ -21,7 +21,7 @@ export class PathFactory {
21
21
/** Given a Node[], create an TargetState */
22
22
static makeTargetState ( path : Node [ ] ) : TargetState {
23
23
let state = tail ( path ) . state ;
24
- return new TargetState ( state , state , path . map ( prop ( "values " ) ) . reduce ( mergeR , { } ) ) ;
24
+ return new TargetState ( state , state , path . map ( prop ( "paramValues " ) ) . reduce ( mergeR , { } ) ) ;
25
25
}
26
26
27
27
/* Given params and a state, creates an Node */
@@ -50,8 +50,8 @@ export class PathFactory {
50
50
*/
51
51
static inheritParams ( fromPath : Node [ ] , toPath : Node [ ] , toKeys : string [ ] = [ ] ) : Node [ ] {
52
52
function nodeParamVals ( path : Node [ ] , state : State ) : RawParams {
53
- let node = find ( path , propEq ( 'state' , state ) ) ;
54
- return extend ( { } , node && node . values ) ;
53
+ let node : Node = find ( path , propEq ( 'state' , state ) ) ;
54
+ return extend ( { } , node && node . paramValues ) ;
55
55
}
56
56
57
57
/**
@@ -60,7 +60,7 @@ export class PathFactory {
60
60
*/
61
61
let makeInheritedParamsNode = curry ( function ( _fromPath : Node [ ] , _toKeys : string [ ] , toNode : Node ) : Node {
62
62
// All param values for the node (may include default key/vals, when key was not found in toParams)
63
- let toParamVals = extend ( { } , toNode && toNode . values ) ;
63
+ let toParamVals = extend ( { } , toNode && toNode . paramValues ) ;
64
64
// limited to only those keys found in toParams
65
65
let incomingParamVals = pick ( toParamVals , _toKeys ) ;
66
66
toParamVals = omit ( toParamVals , _toKeys ) ;
@@ -88,7 +88,7 @@ export class PathFactory {
88
88
resolvePath . forEach ( ( node : Node ) => {
89
89
node . resolveContext = resolveContext . isolateRootTo ( node . state ) ;
90
90
node . resolveInjector = new ResolveInjector ( node . resolveContext , node . state ) ;
91
- node . resolves . $stateParams = new Resolvable ( "$stateParams" , ( ) => node . values , node . values ) ;
91
+ node . resolves . $stateParams = new Resolvable ( "$stateParams" , ( ) => node . paramValues , node . paramValues ) ;
92
92
} ) ;
93
93
94
94
return resolvePath ;
@@ -108,7 +108,7 @@ export class PathFactory {
108
108
109
109
/** Given a retained node, return a new node which uses the to node's param values */
110
110
function applyToParams ( retainedNode : Node , idx : number ) : Node {
111
- return Node . clone ( retainedNode , { values : toPath [ idx ] . values } ) ;
111
+ return Node . clone ( retainedNode , { paramValues : toPath [ idx ] . paramValues } ) ;
112
112
}
113
113
114
114
let from : Node [ ] , retained : Node [ ] , exiting : Node [ ] , entering : Node [ ] , to : Node [ ] ;
0 commit comments