internalPropNames isn't necessary, so remove it

Perhaps we'll bring it back as a future perf optimization if that
appears useful.
This commit is contained in:
Ben Alpert
2013-06-11 19:02:35 -07:00
parent 8762634cf1
commit 731aa8ead1
2 changed files with 0 additions and 16 deletions
-12
View File
@@ -35,13 +35,6 @@ var merge = require('merge');
*/
var OWNER = '{owner}';
/**
* Internal properties that shouldn't be considered when modifying node
* attributes.
*/
var internalPropNames = {children: true};
internalPropNames[OWNER] = true;
/**
* Every React component is in one of these life cycles.
*/
@@ -138,11 +131,6 @@ function appendNestedChildren(parentKey, sourceArray, targetArray) {
*/
var ReactComponent = {
/**
* @internal
*/
internalPropNames: internalPropNames,
/**
* @param {?object} object
* @return {boolean} True if `object` is a valid component.
-4
View File
@@ -32,8 +32,6 @@ var keyOf = require('keyOf');
var merge = require('merge');
var mixInto = require('mixInto');
var internalPropNames = ReactComponent.internalPropNames;
var putListener = ReactEventEmitter.putListener;
var deleteListener = ReactEventEmitter.deleteListener;
var registrationNames = ReactEventEmitter.registrationNames;
@@ -236,7 +234,6 @@ ReactNativeComponent.Mixin = {
this._rootNodeID,
''
);
} else if (internalPropNames[propKey]) {
} else if (registrationNames[propKey]) {
deleteListener(this._rootNodeID, propKey);
} else {
@@ -291,7 +288,6 @@ ReactNativeComponent.Mixin = {
this._rootNodeID,
'' + nextProp
);
} else if (internalPropNames[propKey]) {
} else if (registrationNames[propKey]) {
putListener(this._rootNodeID, propKey, nextProp);
} else {