File tree 3 files changed +5
-15
lines changed
3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 1
1
var React = require ( 'react' ) ;
2
2
var warning = require ( 'react/lib/warning' ) ;
3
+ var copyProperties = require ( 'react/lib/copyProperties' ) ;
3
4
var Promise = require ( 'es6-promise' ) . Promise ;
4
5
var goBack = require ( '../helpers/goBack' ) ;
5
- var mergeProperties = require ( '../helpers/mergeProperties' ) ;
6
6
var replaceWith = require ( '../helpers/replaceWith' ) ;
7
7
var transitionTo = require ( '../helpers/transitionTo' ) ;
8
8
var Route = require ( '../components/Route' ) ;
@@ -216,7 +216,7 @@ function Transition(path) {
216
216
this . isCancelled = false ;
217
217
}
218
218
219
- mergeProperties ( Transition . prototype , {
219
+ copyProperties ( Transition . prototype , {
220
220
221
221
abort : function ( ) {
222
222
this . cancelReason = new Abort ( ) ;
@@ -450,7 +450,7 @@ function computeHandlerProps(matches, query) {
450
450
if ( arguments . length > 2 && typeof arguments [ 2 ] !== 'undefined' )
451
451
throw new Error ( 'Passing children to a route handler is not supported' ) ;
452
452
453
- return route . props . handler ( mergeProperties ( props , addedProps ) ) ;
453
+ return route . props . handler ( copyProperties ( props , addedProps ) ) ;
454
454
} . bind ( this , props ) ;
455
455
} ) ;
456
456
Original file line number Diff line number Diff line change 1
1
var invariant = require ( 'react/lib/invariant' ) ;
2
+ var copyProperties = require ( 'react/lib/copyProperties' ) ;
2
3
var qs = require ( 'querystring' ) ;
3
- var mergeProperties = require ( './mergeProperties' ) ;
4
4
var URL = require ( './URL' ) ;
5
5
6
6
var paramMatcher = / ( (?: : [ a - z _ $ ] [ a - z 0 - 9 _ $ ] * ) | \* ) / ig;
@@ -125,7 +125,7 @@ var Path = {
125
125
var existingQuery = Path . extractQuery ( path ) ;
126
126
127
127
if ( existingQuery )
128
- query = query ? mergeProperties ( existingQuery , query ) : existingQuery ;
128
+ query = query ? copyProperties ( existingQuery , query ) : existingQuery ;
129
129
130
130
var queryString = query && qs . stringify ( query ) ;
131
131
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments