User/Channel dispose removing vars to early
authorDarren <darren@darrenwhitlen.com>
Sat, 18 Oct 2014 20:10:51 +0000 (21:10 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 18 Oct 2014 20:10:51 +0000 (21:10 +0100)
server/irc/channel.js
server/irc/user.js

index 089aefc79d9cef8304ff74ee4791716a9a36a70b..afee79652772f4781b3a3bf70cd8e0898adaa908 100644 (file)
@@ -40,7 +40,6 @@ module.exports = IrcChannel;
 
 IrcChannel.prototype.dispose = function (){
     EventBinder.unbindIrcEvents('channel ' + this.name, this.irc_events, this.irc_connection);
-    this.irc_connection = undefined;
 };
 
 
index 9987ad36ba088a96c5972a35effa87f7d5f6f796..39bdcca2f4a3ac0b5c599be0c5967c60512b88f3 100755 (executable)
@@ -43,7 +43,6 @@ module.exports = IrcUser;
 \r
 IrcUser.prototype.dispose = function () {\r
     EventBinder.unbindIrcEvents('user ' + this.nick, this.irc_events, this.irc_connection);\r
-    this.irc_connection = undefined;\r
 };\r
 \r
 \r