Index: third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js b/third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js |
index 99b1246200272c7685820a21cad17795ee44887d..d351f718a1653d7806a3b14f2502d6d67cf66030 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js |
+++ b/third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js |
@@ -58,9 +58,9 @@ WebInspector.TextDictionary.prototype = { |
var count = this._words.get(word) || 0; |
if (!count) |
return; |
- this._index.remove(word); |
if (count === 1) { |
this._words.delete(word); |
+ this._index.remove(word); |
return; |
} |
--count; |