componentWillUnmount() { window.removeEventListener('resize', this.boundWindowResize); document.removeEventListener('keyup', this.boundKeyUp); document.body.classList.remove('modal-open'); }
onClose() { this.setState(state => { if (!state.dismissed && typeof document !== 'undefined') { document.body.classList.remove('notification-bar-visible'); } return { dismissed: !state.dismissed }; }); }
function removeLoadingScreenClassNamesFromBody() { if ( ! document ) { return; } document.body.classList.remove( 'has-loading-screen-signup' ); }
componentWillUpdate(nextProps, nextState) { if (nextProps.show) { document.addEventListener('keyup', this.boundKeyUp); document.body.classList.add('modal-open'); } else { document.removeEventListener('keyup', this.boundKeyUp); document.body.classList.remove('modal-open'); } }
enableBody () { window.document.getElementsByTagName('body')[0].classList.remove('disabled-body') }
document.documentElement.classList.remove( 'zoomed' );
contributorAvatar.classList.remove('hidden')
return; blockSidebarButton.classList.remove( 'hidden' );
addCssClassTemporary(className) { // clear this.sidebarElem.classList.add(className); // restore after 300ms setTimeout(() => { this.sidebarElem.classList.remove(className); }, 300); }
/** * Handles a signed in user. Sets the session cookie and then redirects to * profile page on success. * @param {!firebase.User} user */ const handleSignedInUser = function(user) { // Show redirection notice. document.getElementById('redirecting').classList.remove('hidden'); // Set session cookie user.getIdToken().then(function(idToken) { // Session login endpoint is queried and the session cookie is set. // CSRF token should be sent along with request. const csrfToken = getCookie('csrfToken') return postIdTokenToSessionLogin('/sessionLogin', idToken, csrfToken) .then(function() { // Redirect to profile on success. window.location.assign('/profile'); }, function(error) { // Refresh page on error. // In all cases, client side state should be lost due to in-memory // persistence. window.location.assign('/'); }); }); }
componentWillUnmount(){ document.body.classList.remove('login') }
componentWillUnmount(){ document.body.classList.remove('login') }
componentWillUnmount(){ document.body.classList.remove('login') }