Fix problem that caused deletion of tokens with multiple diagnostics.

R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//374363002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38081 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ahe@google.com
2014-07-09 10:11:55 +00:00
parent e4dd01b833
commit bd9045f76f
+1 -1
View File
@@ -164,7 +164,7 @@ addDiagnostic(String kind, String message, int begin, int end) {
Element parent = node.parent;
if (parent.classes.contains("diagnostic") &&
!interaction.oldDiagnostics.contains(parent)) {
Element other = parent.lastChild;
Element other = parent.firstChild;
other.remove();
SpanElement wrapper = new SpanElement();
wrapper.style