From 2bfa82e3e8fafbd30e3b6ce805e44e9b52ceddce Mon Sep 17 00:00:00 2001 From: haad Date: Tue, 19 Jan 2016 22:06:00 +0800 Subject: [PATCH] Cleanups --- OrbitClient.js | 3 +-- README.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/OrbitClient.js b/OrbitClient.js index 0b8f26b..9129314 100644 --- a/OrbitClient.js +++ b/OrbitClient.js @@ -43,8 +43,6 @@ class OrbitClient { _iterator(channel, password, options) { const messages = this._getMessages(channel, password, options); - - // Iterator interface implementation let currentIndex = 0; let iterator = { [Symbol.iterator]() { @@ -59,6 +57,7 @@ class OrbitClient { return item; }, collect: () => messages + // TODO: add first() and last() ? } return iterator; diff --git a/README.md b/README.md index f406703..6573872 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ async(() => { // Modes const password = 'hello'; - const channelModes; + let channelModes; channelModes = orbit.channel(channel).setMode({ mode: "+r", params: { password: password } }); // { modes: { r: { password: 'hello' } } } channelModes = orbit.channel(channel, password).setMode({ mode: "+w", params: { ops: [orbit.user.id] } }); // { modes: { ... } } channelModes = orbit.channel(channel, password).setMode({ mode: "-r" }); // { modes: { ... } }