[polari/wip/fmuellner/window-experiments: 26/30] chatroomManager: Add forEachRoom()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/window-experiments: 26/30] chatroomManager: Add forEachRoom()
- Date: Mon, 18 Jul 2016 12:47:01 +0000 (UTC)
commit 827e356eeee5a0706a5eeed5cf5578a238dbe187
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jul 14 16:44:41 2016 +0200
chatroomManager: Add forEachRoom()
src/chatroomManager.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/chatroomManager.js b/src/chatroomManager.js
index 48fc3cc..7e110d7 100644
--- a/src/chatroomManager.js
+++ b/src/chatroomManager.js
@@ -489,6 +489,11 @@ const _ChatroomManager = new Lang.Class({
this._app.active_window.active_room = room;
},
+ forEachRoom: function(func) {
+ for (let room of this._rooms.values())
+ func(room);
+ },
+
getRoomByName: function(name) {
for (let room of this._rooms.values())
if (rooms.channel_name == name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]