[polari/wip/raresv/userTracker] fixed unwatchUserMethod, userTracker part 12
- From: Rares Visalom <raresvisalom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/raresv/userTracker] fixed unwatchUserMethod, userTracker part 12
- Date: Tue, 5 Jul 2016 19:47:04 +0000 (UTC)
commit e818dafe16af0c7442d008faf4c0597b5583da32
Author: raresv <rares visalom gmail com>
Date: Tue Jul 5 22:45:09 2016 +0300
fixed unwatchUserMethod, userTracker part 12
src/userTracker.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index 5dc7c6a..1e95e98 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -295,10 +295,10 @@ const UserTracker = new Lang.Class({
this._handlerCounter++;
return this._handlerCounter - 1;
- }
+ },
- unwatchUser: function(room, nick, callback) {
- /*would it make sense to call _ensure() here?*/
+ unwatchUser: function(room, nick, handlerID) {
+ /*it wouldn't make sense to call _ensure() here, right?*/
if (!this._roomMapping)
return;
@@ -308,7 +308,7 @@ const UserTracker = new Lang.Class({
if (!this._roomMapping.get(room)._handlerMapping)
return;
-
+ this._roomMapping.get(room)._handlerMapping.delete(handlerID);
}
});
Signals.addSignalMethods(UserTracker.prototype);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]