This commit is contained in:
haad 2016-01-05 18:16:45 +01:00
parent 58e62912df
commit 0fab691eae

View File

@ -46,7 +46,6 @@ class OrbitClient {
} }
_getMessages(channel, password, options) { _getMessages(channel, password, options) {
var currentIndex = 0;
var messages = []; var messages = [];
if(!options) options = {}; if(!options) options = {};
@ -88,10 +87,14 @@ class OrbitClient {
if(reverse) messages.reverse(); if(reverse) messages.reverse();
return messages;
}
_iterator(channel, password, options) { _iterator(channel, password, options) {
var messages = this._getMessages(channel, password, options); var messages = this._getMessages(channel, password, options);
// Iterator interface implementation // Iterator interface implementation
var currentIndex = 0;
let iterator = { let iterator = {
[Symbol.iterator]() { [Symbol.iterator]() {
return this; return this;