1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-18 05:42:00 +03:00

Style checks and more jsdoc.

This commit is contained in:
Kegan Dougal
2015-06-04 16:02:08 +01:00
parent a95f9d3717
commit 31ffdf8a37
5 changed files with 96 additions and 17 deletions

View File

@@ -21,7 +21,7 @@ function MatrixClient(opts) {
utils.checkObjectHasNoAdditionalKeys(opts,
["baseUrl", "request", "usePromises", "accessToken", "userId", "store"]
);
this.store = opts.store || null;
// track our position in the overall eventstream
this.fromToken = undefined;
@@ -307,7 +307,7 @@ MatrixClient.prototype = {
'bind': bind
};
return this._http.authedRequestWithPrefix(
callback, "POST", path, qps, data, httpApi.PREFIX_V2_ALPHA
callback, "POST", path, null, data, httpApi.PREFIX_V2_ALPHA
);
},
@@ -463,7 +463,7 @@ MatrixClient.prototype = {
},
isLoggedIn: function() {
return this._http.opts.accessToken !== undefined
return this._http.opts.accessToken !== undefined;
},