diff --git a/src/core/ReactDOM.js b/src/core/ReactDOM.js index b1882b3be0..35a15eb5d3 100644 --- a/src/core/ReactDOM.js +++ b/src/core/ReactDOM.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactDOM - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/core/ReactDOMIDOperations.js b/src/core/ReactDOMIDOperations.js index f95fc2837a..7c0de701d8 100644 --- a/src/core/ReactDOMIDOperations.js +++ b/src/core/ReactDOMIDOperations.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactDOMIDOperations - * @typechecks + * @typechecks static-only */ /*jslint evil: true */ diff --git a/src/core/ReactDOMNodeCache.js b/src/core/ReactDOMNodeCache.js new file mode 100644 index 0000000000..4ea1bb63e9 --- /dev/null +++ b/src/core/ReactDOMNodeCache.js @@ -0,0 +1,26 @@ +/** + * Copyright 2013 Facebook, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @providesModule ReactDOMNodeCache + * @typechecks static-only + */ + +"use strict"; + +var ReactID = require('ReactID'); + +exports.getNodeByID = ReactID.getNode; +exports.purgeID = ReactID.purgeID; +exports.purgeEntireCache = ReactID.purgeEntireCache; diff --git a/src/core/ReactEventEmitter.js b/src/core/ReactEventEmitter.js index 65f5072bbf..aa6a81e236 100644 --- a/src/core/ReactEventEmitter.js +++ b/src/core/ReactEventEmitter.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactEventEmitter - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/core/ReactEventTopLevelCallback.js b/src/core/ReactEventTopLevelCallback.js index 25719e812c..215d23da23 100644 --- a/src/core/ReactEventTopLevelCallback.js +++ b/src/core/ReactEventTopLevelCallback.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactEventTopLevelCallback - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/core/ReactID.js b/src/core/ReactID.js index 276520df9e..c15dbfcec0 100644 --- a/src/core/ReactID.js +++ b/src/core/ReactID.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactID - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/core/ReactInstanceHandles.js b/src/core/ReactInstanceHandles.js index dd8e68c219..de0b2777e2 100644 --- a/src/core/ReactInstanceHandles.js +++ b/src/core/ReactInstanceHandles.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactInstanceHandles - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/core/ReactNativeComponent.js b/src/core/ReactNativeComponent.js index eddb27ec5f..a160adf1cf 100644 --- a/src/core/ReactNativeComponent.js +++ b/src/core/ReactNativeComponent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactNativeComponent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/core/ReactReconcileTransaction.js b/src/core/ReactReconcileTransaction.js index a44214dcb8..904df5e719 100644 --- a/src/core/ReactReconcileTransaction.js +++ b/src/core/ReactReconcileTransaction.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactReconcileTransaction - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/core/ReactTextComponent.js b/src/core/ReactTextComponent.js index 57e56bbce2..1d0af59858 100644 --- a/src/core/ReactTextComponent.js +++ b/src/core/ReactTextComponent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule ReactTextComponent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/dom/CSSPropertyOperations.js b/src/dom/CSSPropertyOperations.js index ab46485f36..e664ad432e 100644 --- a/src/dom/CSSPropertyOperations.js +++ b/src/dom/CSSPropertyOperations.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule CSSPropertyOperations - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/dom/DOMProperty.js b/src/dom/DOMProperty.js index 52c4fcd07e..0d763036a7 100644 --- a/src/dom/DOMProperty.js +++ b/src/dom/DOMProperty.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule DOMProperty - * @typechecks + * @typechecks static-only */ /*jslint bitwise: true */ diff --git a/src/dom/DOMPropertyOperations.js b/src/dom/DOMPropertyOperations.js index b582bf914c..cb5d55ad4c 100644 --- a/src/dom/DOMPropertyOperations.js +++ b/src/dom/DOMPropertyOperations.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule DOMPropertyOperations - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/dom/dangerousStyleValue.js b/src/dom/dangerousStyleValue.js index 9c12b12ab3..216396563e 100644 --- a/src/dom/dangerousStyleValue.js +++ b/src/dom/dangerousStyleValue.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule dangerousStyleValue - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/dom/getDOMNodeID.js b/src/dom/getDOMNodeID.js new file mode 100644 index 0000000000..41a921eeb2 --- /dev/null +++ b/src/dom/getDOMNodeID.js @@ -0,0 +1,27 @@ +/** + * Copyright 2013 Facebook, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @providesModule getDOMNodeID + * @typechecks static-only + */ + +"use strict"; + +var ReactID = require('ReactID'); + +function getDOMNodeID(domNode) { + return ReactID.getID(domNode); +} +module.exports = getDOMNodeID; diff --git a/src/dom/getEventTarget.js b/src/dom/getEventTarget.js index 7cb4ce3eb7..e1b10aebc4 100644 --- a/src/dom/getEventTarget.js +++ b/src/dom/getEventTarget.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule getEventTarget - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/environment/ReactServerRendering.js b/src/environment/ReactServerRendering.js index b7c43d13ec..0a0b598927 100644 --- a/src/environment/ReactServerRendering.js +++ b/src/environment/ReactServerRendering.js @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * @typechecks + * @typechecks static-only * @providesModule ReactServerRendering */ "use strict"; diff --git a/src/event/CallbackRegistry.js b/src/event/CallbackRegistry.js index a0c2b5aca5..e0cf9a5c82 100644 --- a/src/event/CallbackRegistry.js +++ b/src/event/CallbackRegistry.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule CallbackRegistry - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/EventPluginRegistry.js b/src/event/EventPluginRegistry.js index e9302eb495..14a2fcb024 100644 --- a/src/event/EventPluginRegistry.js +++ b/src/event/EventPluginRegistry.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule EventPluginRegistry - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/synthetic/SyntheticEvent.js b/src/event/synthetic/SyntheticEvent.js index 366da3cbc6..2370528851 100644 --- a/src/event/synthetic/SyntheticEvent.js +++ b/src/event/synthetic/SyntheticEvent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule SyntheticEvent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/synthetic/SyntheticFocusEvent.js b/src/event/synthetic/SyntheticFocusEvent.js index a90ba3f79a..cf17be6bf0 100644 --- a/src/event/synthetic/SyntheticFocusEvent.js +++ b/src/event/synthetic/SyntheticFocusEvent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule SyntheticFocusEvent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/synthetic/SyntheticKeyboardEvent.js b/src/event/synthetic/SyntheticKeyboardEvent.js index 6e6b078282..c7c64e21bb 100644 --- a/src/event/synthetic/SyntheticKeyboardEvent.js +++ b/src/event/synthetic/SyntheticKeyboardEvent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule SyntheticKeyboardEvent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/synthetic/SyntheticMouseEvent.js b/src/event/synthetic/SyntheticMouseEvent.js index 5e5dd8ded8..8dde7e1045 100644 --- a/src/event/synthetic/SyntheticMouseEvent.js +++ b/src/event/synthetic/SyntheticMouseEvent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule SyntheticMouseEvent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/synthetic/SyntheticMutationEvent.js b/src/event/synthetic/SyntheticMutationEvent.js index 55ae1baa35..44bbc0d3c7 100644 --- a/src/event/synthetic/SyntheticMutationEvent.js +++ b/src/event/synthetic/SyntheticMutationEvent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule SyntheticMutationEvent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/synthetic/SyntheticTouchEvent.js b/src/event/synthetic/SyntheticTouchEvent.js index 304e592608..3c3348bfbf 100644 --- a/src/event/synthetic/SyntheticTouchEvent.js +++ b/src/event/synthetic/SyntheticTouchEvent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule SyntheticTouchEvent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/synthetic/SyntheticUIEvent.js b/src/event/synthetic/SyntheticUIEvent.js index 4e2b0d5964..5d95ea1417 100644 --- a/src/event/synthetic/SyntheticUIEvent.js +++ b/src/event/synthetic/SyntheticUIEvent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule SyntheticUIEvent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/event/synthetic/SyntheticWheelEvent.js b/src/event/synthetic/SyntheticWheelEvent.js index bab71dd4ba..5d2320f9ae 100644 --- a/src/event/synthetic/SyntheticWheelEvent.js +++ b/src/event/synthetic/SyntheticWheelEvent.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule SyntheticWheelEvent - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/eventPlugins/EnterLeaveEventPlugin.js b/src/eventPlugins/EnterLeaveEventPlugin.js index d01e032b99..f7a385ba18 100644 --- a/src/eventPlugins/EnterLeaveEventPlugin.js +++ b/src/eventPlugins/EnterLeaveEventPlugin.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule EnterLeaveEventPlugin - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/eventPlugins/TapEventPlugin.js b/src/eventPlugins/TapEventPlugin.js index 75409ab4b3..c748da79e7 100644 --- a/src/eventPlugins/TapEventPlugin.js +++ b/src/eventPlugins/TapEventPlugin.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule TapEventPlugin - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/utils/joinClasses.js b/src/utils/joinClasses.js index af367123d8..d65bee6dc4 100644 --- a/src/utils/joinClasses.js +++ b/src/utils/joinClasses.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule joinClasses - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/utils/memoizeStringOnly.js b/src/utils/memoizeStringOnly.js index a11d026a23..3a8971358d 100644 --- a/src/utils/memoizeStringOnly.js +++ b/src/utils/memoizeStringOnly.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule memoizeStringOnly - * @typechecks + * @typechecks static-only */ "use strict"; diff --git a/src/utils/mergeInto.js b/src/utils/mergeInto.js index ac8ea868a7..376571357f 100644 --- a/src/utils/mergeInto.js +++ b/src/utils/mergeInto.js @@ -14,7 +14,7 @@ * limitations under the License. * * @providesModule mergeInto - * @typechecks + * @typechecks static-only */ "use strict";