Fix race condition causing Index.root to be removed.

This commit is contained in:
ccd0 2015-01-26 01:46:02 -08:00
parent d75dcda461
commit 813de2b71b
3 changed files with 3 additions and 3 deletions

View File

@ -5126,7 +5126,7 @@
_ref5.parentNode.remove();
}
$.after($.x('child::form/preceding-sibling::hr[1]'), Index.navLinks);
if (g.VIEW !== 'index') {
if (g.VIEW !== 'index' || Index.root.parentElement) {
return;
}
board = $('.board');

View File

@ -5151,7 +5151,7 @@
_ref5.parentNode.remove();
}
$.after($.x('child::form/preceding-sibling::hr[1]'), Index.navLinks);
if (g.VIEW !== 'index') {
if (g.VIEW !== 'index' || Index.root.parentElement) {
return;
}
board = $('.board');

View File

@ -155,7 +155,7 @@ Index =
$.id('search-box')?.parentNode.remove()
$.after $.x('child::form/preceding-sibling::hr[1]'), Index.navLinks
return if g.VIEW isnt 'index'
return if g.VIEW isnt 'index' or Index.root.parentElement
board = $ '.board'
$.replace board, Index.root