浏览代码

Fix jsdocs. Simplify the source code

j8
Lyubo Marinov 8 年前
父节点
当前提交
9bd6bbfd95

+ 1
- 1
react/features/app/components/AbstractApp.js 查看文件

126
         // The consumer of this AbstractApp did not provide a Redux store.
126
         // The consumer of this AbstractApp did not provide a Redux store.
127
         if (typeof nextProps.store === 'undefined'
127
         if (typeof nextProps.store === 'undefined'
128
 
128
 
129
-                // The consumer of this AbstractApp  did provide a Redux store
129
+                // The consumer of this AbstractApp did provide a Redux store
130
                 // before. Which means that the consumer changed their mind. In
130
                 // before. Which means that the consumer changed their mind. In
131
                 // such a case this instance should create its own internal
131
                 // such a case this instance should create its own internal
132
                 // Redux store. If the consumer did not provide a Redux store
132
                 // Redux store. If the consumer did not provide a Redux store

+ 2
- 2
react/features/app/components/App.native.js 查看文件

130
      * @private
130
      * @private
131
      * @returns {void}
131
      * @returns {void}
132
      */
132
      */
133
-    _onLinkingURL(event) {
134
-        this._openURL(event.url);
133
+    _onLinkingURL({ url }) {
134
+        this._openURL(url);
135
     }
135
     }
136
 }
136
 }
137
 
137
 

+ 4
- 4
react/features/app/middleware.js 查看文件

15
 
15
 
16
 /**
16
 /**
17
  * Notifies the feature app that the action {@link CONNECTION_ESTABLISHED} is
17
  * Notifies the feature app that the action {@link CONNECTION_ESTABLISHED} is
18
- * being dispatched within a specific Redux {@code store}.
18
+ * being dispatched within a specific redux {@code store}.
19
  *
19
  *
20
- * @param {Store} store - The Redux store in which the specified {@code action}
20
+ * @param {Store} store - The redux store in which the specified {@code action}
21
  * is being dispatched.
21
  * is being dispatched.
22
- * @param {Dispatch} next - The Redux {@code dispatch} function to dispatch the
22
+ * @param {Dispatch} next - The redux {@code dispatch} function to dispatch the
23
  * specified {@code action} to the specified {@code store}.
23
  * specified {@code action} to the specified {@code store}.
24
- * @param {Action} action - The Redux action {@code CONNECTION_ESTABLISHED}
24
+ * @param {Action} action - The redux action {@code CONNECTION_ESTABLISHED}
25
  * which is being dispatched in the specified {@code store}.
25
  * which is being dispatched in the specified {@code store}.
26
  * @private
26
  * @private
27
  * @returns {Object} The new state that is the result of the reduction of the
27
  * @returns {Object} The new state that is the result of the reduction of the

+ 2
- 4
react/index.native.js 查看文件

60
         // precedence.
60
         // precedence.
61
         if (typeof this.props.url === 'undefined') {
61
         if (typeof this.props.url === 'undefined') {
62
             Linking.getInitialURL()
62
             Linking.getInitialURL()
63
-                .then(url => {
64
-                    this.setState({ url });
65
-                })
63
+                .then(url => this.setState({ url }))
66
                 .catch(err => {
64
                 .catch(err => {
67
                     console.error('Failed to get initial URL', err);
65
                     console.error('Failed to get initial URL', err);
68
 
66
 
69
-                    // Start with an empty URL if getting the initial URL fails
67
+                    // Start with an empty URL if getting the initial URL fails;
70
                     // otherwise, nothing will be rendered.
68
                     // otherwise, nothing will be rendered.
71
                     this.setState({ url: null });
69
                     this.setState({ url: null });
72
                 });
70
                 });

正在加载...
取消
保存