aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-04-16 14:30:05 +0100
committerStephen Blott2016-04-16 14:30:05 +0100
commitf3aba1914dc645d4de15ff6e6a9104dcb99018ee (patch)
tree709851e818cf2b8956589e412ba8ee6fabceeb81
parent5bfe6dc5d1e0aeb1ab3e372821997d83ba5c9164 (diff)
downloadvimium-f3aba1914dc645d4de15ff6e6a9104dcb99018ee.tar.bz2
Remove dead code from the HUD initialization.
-rw-r--r--content_scripts/hud.coffee2
-rw-r--r--pages/hud.coffee4
2 files changed, 1 insertions, 5 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee
index fb1fd657..32662861 100644
--- a/content_scripts/hud.coffee
+++ b/content_scripts/hud.coffee
@@ -30,7 +30,7 @@ HUD =
showFindMode: (@findMode = null) ->
return unless @isReady()
- @hudUI.activate name: "showFindMode", text: ""
+ @hudUI.activate name: "showFindMode"
@tween.fade 1.0, 150
search: (data) ->
diff --git a/pages/hud.coffee b/pages/hud.coffee
index d2e35cec..e35e587e 100644
--- a/pages/hud.coffee
+++ b/pages/hud.coffee
@@ -63,7 +63,6 @@ handlers =
inputElement = document.createElement "span"
inputElement.contentEditable = "plaintext-only"
- setTextInInputElement inputElement, data.text if data.text
inputElement.id = "hud-find-input"
hud.appendChild inputElement
@@ -77,9 +76,6 @@ handlers =
hud.appendChild countElement
inputElement.focus()
- # Replace \u00A0 ( ) with a normal space.
- UIComponentServer.postMessage {name: "search", query: inputElement.textContent.replace "\u00A0", " "}
-
findMode =
historyIndex: -1
partialQuery: ""