From 8df381da2feb857dfba30c2a6b9dc6f20018d511 Mon Sep 17 00:00:00 2001 From: Salome Vakhtangadze Date: Mon, 2 Feb 2015 18:27:19 -0500 Subject: [PATCH] do not reset myInstance to null --- src/generic_core/social.spec.ts | 1 - src/generic_core/social.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/generic_core/social.spec.ts b/src/generic_core/social.spec.ts index b2ab716cc3..7f74c435e5 100644 --- a/src/generic_core/social.spec.ts +++ b/src/generic_core/social.spec.ts @@ -149,7 +149,6 @@ describe('Social.FreedomNetwork', () => { jasmine.clock().tick(5000); expect(friend.monitor).not.toHaveBeenCalled(); jasmine.clock().uninstall(); - expect(network.myInstance).toEqual(null); }).then(done); }); diff --git a/src/generic_core/social.ts b/src/generic_core/social.ts index 16ded5429d..5fae095c17 100644 --- a/src/generic_core/social.ts +++ b/src/generic_core/social.ts @@ -501,7 +501,6 @@ module Social { } public logout = () : Promise => { - this.myInstance = null; this.stopMonitor_(); for (var userId in this.roster) { this.roster[userId].handleLogout();