diff --git a/lib/store/memory.js b/lib/store/memory.js index 5bdc3ef25..b7af1bfd8 100644 --- a/lib/store/memory.js +++ b/lib/store/memory.js @@ -159,7 +159,7 @@ module.exports.MatrixInMemoryStore.prototype = { try { return this.localStorage.getItem("mxjssdk_memory_filter_" + filterName); } - catch(e) {} + catch (e) {} return null; }, diff --git a/lib/sync.js b/lib/sync.js index f6e47e435..6ca40e87a 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -22,6 +22,7 @@ var FILTER_SYNC = "FILTER_SYNC"; * Construct an entity which is able to sync with a homeserver. * @constructor * @param {MatrixClient} client The matrix client instance to use. + * @param {Object} opts Config options */ function SyncApi(client, opts) { this.client = client; diff --git a/lib/utils.js b/lib/utils.js index 32741f2f6..f58a6533b 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -384,7 +384,8 @@ module.exports.runPolyfills = function() { throw new TypeError(' this is null or not defined'); } - // 1. Let O be the result of calling ToObject passing the |this| value as the argument. + // 1. Let O be the result of calling ToObject passing the |this| value as the + // argument. var O = Object(this); // 2. Let lenValue be the result of calling the Get internal method of O with the @@ -420,7 +421,8 @@ module.exports.runPolyfills = function() { // c. If kPresent is true, then if (k in O) { - // i. Let kValue be the result of calling the Get internal method of O with argument Pk + // i. Let kValue be the result of calling the Get internal method of O with + // argument Pk kValue = O[k]; // ii. Call the Call internal method of callback with T as the this value and