|
@@ -30,7 +30,9 @@ export function appNavigate(uri: ?string) {
|
30
|
30
|
* state.
|
31
|
31
|
* @param {Object} newLocation - The location URI to navigate to. The value
|
32
|
32
|
* cannot be undefined and is assumed to have all properties such as
|
33
|
|
- * {@code host} and {@code room} defined values.
|
|
33
|
+ * {@code host}, {@code contextRoot}, and {@code room} defined. Depending on the
|
|
34
|
+ * property, it may have a value equal to {@code undefined} and that may be
|
|
35
|
+ * acceptable.
|
34
|
36
|
* @private
|
35
|
37
|
* @returns {void}
|
36
|
38
|
*/
|
|
@@ -55,8 +57,9 @@ function _appNavigateToMandatoryLocation(
|
55
|
57
|
}
|
56
|
58
|
|
57
|
59
|
/**
|
58
|
|
- * Notifies that an attempt to load the config(uration) of domain has
|
59
|
|
- * completed.
|
|
60
|
+ * Notifies that an attempt to load a config(uration) has completed. Due to
|
|
61
|
+ * the asynchronous native of the loading, the specified <tt>config</tt> may
|
|
62
|
+ * or may not be required by the time the notification arrives.
|
60
|
63
|
*
|
61
|
64
|
* @param {string|undefined} err - If the loading has failed, the error
|
62
|
65
|
* detailing the cause of the failure.
|
|
@@ -65,6 +68,10 @@ function _appNavigateToMandatoryLocation(
|
65
|
68
|
* @returns {void}
|
66
|
69
|
*/
|
67
|
70
|
function configLoaded(err, config) {
|
|
71
|
+ // FIXME Due to the asynchronous native of the loading, the specified
|
|
72
|
+ // config may or may not be required by the time the notification
|
|
73
|
+ // arrives.
|
|
74
|
+
|
68
|
75
|
if (err) {
|
69
|
76
|
// XXX The failure could be, for example, because of a
|
70
|
77
|
// certificate-related error. In which case the connection will
|
|
@@ -186,6 +193,7 @@ export function appWillUnmount(app) {
|
186
|
193
|
*
|
187
|
194
|
* @param {Object} location - The location URI which specifies the host to load
|
188
|
195
|
* the config.js from.
|
|
196
|
+ * @private
|
189
|
197
|
* @returns {Promise<Object>}
|
190
|
198
|
*/
|
191
|
199
|
function _loadConfig(location: Object) {
|