1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

AC-301 attempting to prevent content flash between logins

This commit is contained in:
chouseknecht 2013-07-29 09:50:25 -04:00
parent 1c84e8a56a
commit 7a10199a1e

View File

@ -68,7 +68,7 @@ angular.module('AuthService', ['ngCookies'])
logout: function() {
// the following puts our primary scope up for garbage collection, which
// should prevent content flash from the prior user.
var scope = angular.element(getElementById('main-view')).scope();
var scope = angular.element(document.getElementById('main-view')).scope();
scope.$destroy();
// but just in case, clear the organization bits