The library for web and native user interfaces.
Make `@typechecks` static-only
CommitSyncScript committed
Jun 25, 2013 at 13:57 UTC
a9b024330c66736fe1b0a3426e3e4f988b26d85a
32 files changed
+83
-30
src/core/ReactDOM.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactDOM
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/core/ReactDOMIDOperations.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactDOMIDOperations
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
/*jslint evil: true */
src/core/ReactDOMNodeCache.js
new
+26
@@ -0,0 +1,26 @@
1
+/**
2
+ * Copyright 2013 Facebook, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ *
16
+ * @providesModule ReactDOMNodeCache
17
+ * @typechecks static-only
18
+ */
19
+
20
+"use strict";
21
+
22
+var ReactID = require('ReactID');
23
+
24
+exports.getNodeByID = ReactID.getNode;
25
+exports.purgeID = ReactID.purgeID;
26
+exports.purgeEntireCache = ReactID.purgeEntireCache;
src/core/ReactEventEmitter.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactEventEmitter
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/core/ReactEventTopLevelCallback.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactEventTopLevelCallback
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/core/ReactID.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactID
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/core/ReactInstanceHandles.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactInstanceHandles
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/core/ReactNativeComponent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactNativeComponent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/core/ReactReconcileTransaction.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactReconcileTransaction
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/core/ReactTextComponent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule ReactTextComponent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/dom/CSSPropertyOperations.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule CSSPropertyOperations
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/dom/DOMProperty.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule DOMProperty
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
/*jslint bitwise: true */
src/dom/DOMPropertyOperations.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule DOMPropertyOperations
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/dom/dangerousStyleValue.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule dangerousStyleValue
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/dom/getDOMNodeID.js
new
+27
@@ -0,0 +1,27 @@
1
+/**
2
+ * Copyright 2013 Facebook, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ *
16
+ * @providesModule getDOMNodeID
17
+ * @typechecks static-only
18
+ */
19
+
20
+"use strict";
21
+
22
+var ReactID = require('ReactID');
23
+
24
+function getDOMNodeID(domNode) {
25
+ return ReactID.getID(domNode);
26
+}
27
+module.exports = getDOMNodeID;
src/dom/getEventTarget.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule getEventTarget
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/environment/ReactServerRendering.js
+1
-1
@@ -13,7 +13,7 @@
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
- * @typechecks
16
+ * @typechecks static-only
17
* @providesModule ReactServerRendering
18
*/
19
"use strict";
src/event/CallbackRegistry.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule CallbackRegistry
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/EventPluginRegistry.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule EventPluginRegistry
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/synthetic/SyntheticEvent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule SyntheticEvent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/synthetic/SyntheticFocusEvent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule SyntheticFocusEvent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/synthetic/SyntheticKeyboardEvent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule SyntheticKeyboardEvent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/synthetic/SyntheticMouseEvent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule SyntheticMouseEvent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/synthetic/SyntheticMutationEvent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule SyntheticMutationEvent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/synthetic/SyntheticTouchEvent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule SyntheticTouchEvent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/synthetic/SyntheticUIEvent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule SyntheticUIEvent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/event/synthetic/SyntheticWheelEvent.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule SyntheticWheelEvent
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/eventPlugins/EnterLeaveEventPlugin.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule EnterLeaveEventPlugin
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/eventPlugins/TapEventPlugin.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule TapEventPlugin
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/utils/joinClasses.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule joinClasses
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/utils/memoizeStringOnly.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule memoizeStringOnly
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";
src/utils/mergeInto.js
+1
-1
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*
16
* @providesModule mergeInto
17
- * @typechecks
17
+ * @typechecks static-only
18
*/
19
20
"use strict";