@@ -604,17 +604,17 @@ function mixStaticSpecIntoComponent(Constructor, statics) {
604
604
* @param {object } two The second object
605
605
* @return {object } one after it has been mutated to contain everything in two.
606
606
*/
607
- function mergeObjectsWithNoDuplicateKeys ( one , two ) {
607
+ function mergeIntoWithNoDuplicateKeys ( one , two ) {
608
608
invariant (
609
609
one && two && typeof one === 'object' && typeof two === 'object' ,
610
- 'mergeObjectsWithNoDuplicateKeys (): Cannot merge non-objects'
610
+ 'mergeIntoWithNoDuplicateKeys (): Cannot merge non-objects. '
611
611
) ;
612
612
613
613
for ( var key in two ) {
614
614
if ( two . hasOwnProperty ( key ) ) {
615
615
invariant (
616
616
one [ key ] === undefined ,
617
- 'mergeObjectsWithNoDuplicateKeys (): ' +
617
+ 'mergeIntoWithNoDuplicateKeys (): ' +
618
618
'Tried to merge two objects with the same key: `%s`. This conflict ' +
619
619
'may be due to a mixin; in particular, this may be caused by two ' +
620
620
'getInitialState() or getDefaultProps() methods returning objects ' +
@@ -645,8 +645,8 @@ function createMergedResultFunction(one, two) {
645
645
return a ;
646
646
}
647
647
var c = { } ;
648
- mergeObjectsWithNoDuplicateKeys ( c , a ) ;
649
- mergeObjectsWithNoDuplicateKeys ( c , b ) ;
648
+ mergeIntoWithNoDuplicateKeys ( c , a ) ;
649
+ mergeIntoWithNoDuplicateKeys ( c , b ) ;
650
650
return c ;
651
651
} ;
652
652
}
0 commit comments