@@ -191,7 +191,7 @@ api.frame = (state, subjects, frame, parent, property = null) => {
191
191
state . graphStack . push ( state . graph ) ;
192
192
// recurse into graph
193
193
api . frame (
194
- Object . assign ( { } , state , { graph : id , embedded : false } ) ,
194
+ { ... state , graph : id , embedded : false } ,
195
195
Object . keys ( state . graphMap [ id ] ) . sort ( ) , [ subframe ] , output , '@graph' ) ;
196
196
state . graphStack . pop ;
197
197
}
@@ -200,7 +200,7 @@ api.frame = (state, subjects, frame, parent, property = null) => {
200
200
// if frame has @included , recurse over its sub-frame
201
201
if ( '@included' in frame ) {
202
202
api . frame (
203
- Object . assign ( { } , state , { embedded : false } ) ,
203
+ { ... state , embedded : false } ,
204
204
subjects , frame [ '@included' ] , output , '@included' ) ;
205
205
}
206
206
@@ -247,7 +247,7 @@ api.frame = (state, subjects, frame, parent, property = null) => {
247
247
if ( graphTypes . isSubjectReference ( oo ) ) {
248
248
// recurse into subject reference
249
249
api . frame (
250
- Object . assign ( { } , state , { embedded : true } ) ,
250
+ { ... state , embedded : true } ,
251
251
[ oo [ '@id' ] ] , subframe , list , '@list' ) ;
252
252
} else {
253
253
// include other values automatically
@@ -257,7 +257,7 @@ api.frame = (state, subjects, frame, parent, property = null) => {
257
257
} else if ( graphTypes . isSubjectReference ( o ) ) {
258
258
// recurse into subject reference
259
259
api . frame (
260
- Object . assign ( { } , state , { embedded : true } ) ,
260
+ { ... state , embedded : true } ,
261
261
[ o [ '@id' ] ] , subframe , output , prop ) ;
262
262
} else if ( _valueMatch ( subframe [ 0 ] , o ) ) {
263
263
// include other values, if they match
@@ -308,7 +308,7 @@ api.frame = (state, subjects, frame, parent, property = null) => {
308
308
util . addValue (
309
309
output [ '@reverse' ] , reverseProp , [ ] , { propertyIsArray : true } ) ;
310
310
api . frame (
311
- Object . assign ( { } , state , { embedded : true } ) ,
311
+ { ... state , embedded : true } ,
312
312
[ subject ] , subframe , output [ '@reverse' ] [ reverseProp ] ,
313
313
property ) ;
314
314
}
0 commit comments