Merge "Clear the statusbar if no annotations are left"

This commit is contained in:
jenkins-bot 2014-05-09 09:18:11 +00:00 committed by Gerrit Code Review
commit d1c3f04a7a

View file

@ -417,7 +417,8 @@
closestAnnotation !== $message.data( 'annotation') ) {
$message.data( 'annotation', closestAnnotation );
$message.text( $.ucFirst( closestAnnotation.type ) + ': ' + closestAnnotation.text );
} else if ( $message.data( 'annotation' ) !== null && ( closestAnnotation && currentLine !== closestAnnotation.row ) ) {
} else if ( $message.data( 'annotation' ) !== null &&
( !closestAnnotation || currentLine !== closestAnnotation.row ) ) {
// If we are on a different line without an annotation, then blank the message
$message.data( 'annotation', null );
$message.text( '' );