Skip to content

Commit f10f32a

Browse files
cpojerzpao
authored andcommitted
Remove objMapKeyVal
1 parent 6cbeee1 commit f10f32a

3 files changed

Lines changed: 5 additions & 52 deletions

File tree

src/browser/ReactDOM.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var ReactDOMComponent = require('ReactDOMComponent');
2323

2424
var mergeInto = require('mergeInto');
25-
var objMapKeyVal = require('objMapKeyVal');
25+
var mapObject = require('mapObject');
2626

2727
/**
2828
* Creates a new React class that is idempotent and capable of containing other
@@ -39,7 +39,7 @@ var objMapKeyVal = require('objMapKeyVal');
3939
* @param {boolean} omitClose True if the close tag should be omitted.
4040
* @private
4141
*/
42-
function createDOMComponentClass(tag, omitClose) {
42+
function createDOMComponentClass(omitClose, tag) {
4343
var Constructor = function() {};
4444
Constructor.prototype = new ReactDOMComponent(tag, omitClose);
4545
Constructor.prototype.constructor = Constructor;
@@ -68,7 +68,7 @@ function createDOMComponentClass(tag, omitClose) {
6868
*
6969
* @public
7070
*/
71-
var ReactDOM = objMapKeyVal({
71+
var ReactDOM = mapObject({
7272
a: false,
7373
abbr: false,
7474
address: false,

src/core/__tests__/ReactMultiChildReconcile-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var React = require('React');
2525
var ReactTestUtils = require('ReactTestUtils');
2626
var ReactMount = require('ReactMount');
2727

28-
var objMapKeyVal = require('objMapKeyVal');
28+
var mapObject = require('mapObject');
2929

3030
var stripEmptyValues = function(obj) {
3131
var ret = {};
@@ -126,7 +126,7 @@ var FriendsStatusDisplay = React.createClass({
126126

127127

128128
function getInteralStateByUserName(statusDisplays) {
129-
return objMapKeyVal(statusDisplays, function(key, statusDisplay) {
129+
return mapObject(statusDisplays, function(statusDisplay, key) {
130130
return statusDisplay.getInternalState();
131131
});
132132
}

src/utils/objMapKeyVal.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)