Fix race condition in the comments river XHR, props mintindeed, fixes #17483

git-svn-id: https://develop.svn.wordpress.org/trunk@17965 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2011-05-19 06:09:52 +00:00
parent 15c2f28085
commit 726f793526
3 changed files with 9 additions and 6 deletions

View File

@ -344,10 +344,13 @@ wpList = {
else
list.append(e);
} else if ( s.pos < 0 ) {
list.prepend(e);
} else {
list.append(e);
} else if ( 0 === $('#' + s.element).size() ) {
if ( s.pos < 0 ) {
list.prepend(e);
} else {
list.append(e);
}
}
if ( s.alt ) {

File diff suppressed because one or more lines are too long

View File

@ -112,7 +112,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20110515' );
$scripts->add_data( 'autosave', 'group', 1 );
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), '20110504' );
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), '20110518' );
$scripts->add_data( 'wp-lists', 'group', 1 );
$scripts->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.3');