Move UI-thread-only browser modules to browser/ui/
This also deletes an unused module.
Pete Hunt committed
Mar 3, 2014 at 14:37 UTC
a8fc3b940dbe20c0c7decd19b028215b236c50a6
53 files changed
-40
src/browser/putDOMComponentListener.js
deleted
-40
@@ -1,40 +0,0 @@
1
-/**
2
- * Copyright 2013-2014 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 putDOMComponentListener
17
- */
18
-
19
-"use strict";
20
-
21
-var ReactEventEmitter = require('ReactEventEmitter');
22
-var ReactMount = require('ReactMount');
23
-
24
-var listenTo = ReactEventEmitter.listenTo;
25
-
26
-var ELEMENT_NODE_TYPE = 1;
27
-
28
-function putDOMComponentListener(id, registrationName, listener) {
29
- var container = ReactMount.findReactContainerForID(id);
30
- if (container) {
31
- var doc = container.nodeType === ELEMENT_NODE_TYPE ?
32
- container.ownerDocument :
33
- container;
34
- listenTo(registrationName, doc);
35
- }
36
-
37
- ReactEventEmitter.putListener(id, registrationName, listener);
38
-}
39
-
40
-module.exports = putDOMComponentListener;