@samitouri / QOS-React-2 / commits / 58d705110e

rename `Id` suffix to `ID` to apply naming conventions

chico committed Feb 10, 2015 at 21:40 UTC 58d705110e1f29c2a8954a571bd5f152bac91f00
2 files changed +5 -5
src/browser/ui/dom/HTMLDOMPropertyConfig.js
+1 -1
@@ -164,7 +164,7 @@ var HTMLDOMPropertyConfig = {
164 // keyboard hints.
165 autoCapitalize: null,
166 autoCorrect: null,
167 - // itemProp, itemScope, itemType, itemType, itemId are for
167 + // itemProp, itemScope, itemType, itemType, itemID are for
168 // Microdata support. See http://schema.org/docs/gs.html
169 itemProp: MUST_USE_ATTRIBUTE,
170 itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
src/core/ReactEmptyComponent.js
+4 -4
@@ -19,7 +19,7 @@ var invariant = require('invariant');
19 var component;
20 // This registry keeps track of the React IDs of the components that rendered to
21 // `null` (in reality a placeholder such as `noscript`)
22 -var nullComponentIdsRegistry = {};
22 +var nullComponentIDsRegistry = {};
23
24 var ReactEmptyComponentInjection = {
25 injectEmptyComponent: function(emptyComponent) {
@@ -63,7 +63,7 @@ var emptyElement = ReactElement.createElement(ReactEmptyComponentType);
63 * @param {string} id Component's `_rootNodeID`.
64 */
65 function registerNullComponentID(id) {
66 - nullComponentIdsRegistry[id] = true;
66 + nullComponentIDsRegistry[id] = true;
67 }
68
69 /**
@@ -71,7 +71,7 @@ function registerNullComponentID(id) {
71 * @param {string} id Component's `_rootNodeID`.
72 */
73 function deregisterNullComponentID(id) {
74 - delete nullComponentIdsRegistry[id];
74 + delete nullComponentIDsRegistry[id];
75 }
76
77 /**
@@ -79,7 +79,7 @@ function deregisterNullComponentID(id) {
79 * @return {boolean} True if the component is rendered to null.
80 */
81 function isNullComponentID(id) {
82 - return !!nullComponentIdsRegistry[id];
82 + return !!nullComponentIDsRegistry[id];
83 }
84
85 var ReactEmptyComponent = {