1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-16 18:21:59 +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

@@ -26,6 +26,7 @@ var HEADERS = {
/**
* Construct a MatrixHttpApi.
* @constructor
* @param {Object} opts The options to use for this HTTP API.
* @param {string} opts.baseUrl Required. The base client-server URL e.g.
* 'http://localhost:8008'.
@@ -154,7 +155,7 @@ MatrixHttpApi.prototype = {
_request: function(callback, method, uri, queryParams, data) {
if (callback !== undefined && !utils.isFunction(callback)) {
throw Error(
"Expected callback to be a function but got "+typeof callback
"Expected callback to be a function but got " + typeof callback
);
}