File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 11var React = require ( 'react' ) ;
22var warning = require ( 'react/lib/warning' ) ;
3+ var copyProperties = require ( 'react/lib/copyProperties' ) ;
34var Promise = require ( 'es6-promise' ) . Promise ;
45var goBack = require ( '../helpers/goBack' ) ;
5- var mergeProperties = require ( '../helpers/mergeProperties' ) ;
66var replaceWith = require ( '../helpers/replaceWith' ) ;
77var transitionTo = require ( '../helpers/transitionTo' ) ;
88var Route = require ( '../components/Route' ) ;
@@ -216,7 +216,7 @@ function Transition(path) {
216216 this . isCancelled = false ;
217217}
218218
219- mergeProperties ( Transition . prototype , {
219+ copyProperties ( Transition . prototype , {
220220
221221 abort : function ( ) {
222222 this . cancelReason = new Abort ( ) ;
@@ -450,7 +450,7 @@ function computeHandlerProps(matches, query) {
450450 if ( arguments . length > 2 && typeof arguments [ 2 ] !== 'undefined' )
451451 throw new Error ( 'Passing children to a route handler is not supported' ) ;
452452
453- return route . props . handler ( mergeProperties ( props , addedProps ) ) ;
453+ return route . props . handler ( copyProperties ( props , addedProps ) ) ;
454454 } . bind ( this , props ) ;
455455 } ) ;
456456
Original file line number Diff line number Diff line change 11var invariant = require ( 'react/lib/invariant' ) ;
2+ var copyProperties = require ( 'react/lib/copyProperties' ) ;
23var qs = require ( 'querystring' ) ;
3- var mergeProperties = require ( './mergeProperties' ) ;
44var URL = require ( './URL' ) ;
55
66var paramMatcher = / ( (?: : [ a - z _ $ ] [ a - z 0 - 9 _ $ ] * ) | \* ) / ig;
@@ -125,7 +125,7 @@ var Path = {
125125 var existingQuery = Path . extractQuery ( path ) ;
126126
127127 if ( existingQuery )
128- query = query ? mergeProperties ( existingQuery , query ) : existingQuery ;
128+ query = query ? copyProperties ( existingQuery , query ) : existingQuery ;
129129
130130 var queryString = query && qs . stringify ( query ) ;
131131
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments