aboutsummaryrefslogtreecommitdiffstats
path: root/pages/ui_component_server.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-16 16:54:12 +0100
committerStephen Blott2016-04-16 17:01:38 +0100
commite07a252508eea45c4dcadc92cdad02d42df2f5f8 (patch)
tree41cb4c9a3302aebf7bd03a4db4d874da24b0f79c /pages/ui_component_server.coffee
parentae1a54157291c0bcc69a6e8652bc15e69b72b4e4 (diff)
downloadvimium-e07a252508eea45c4dcadc92cdad02d42df2f5f8.tar.bz2
Minor code review.
Diffstat (limited to 'pages/ui_component_server.coffee')
-rw-r--r--pages/ui_component_server.coffee7
1 files changed, 2 insertions, 5 deletions
diff --git a/pages/ui_component_server.coffee b/pages/ui_component_server.coffee
index 9f72dd92..488ff0ed 100644
--- a/pages/ui_component_server.coffee
+++ b/pages/ui_component_server.coffee
@@ -18,11 +18,8 @@ UIComponentServer =
registerHandler: (@handleMessage) ->
- postMessage: (message) ->
- @ownerPagePort?.postMessage message
-
- hide: ->
- @postMessage "hide"
+ postMessage: (message) -> @ownerPagePort?.postMessage message
+ hide: -> @postMessage "hide"
# We require both that the DOM is ready and that the port has been opened before the UI component is ready.
# These events can happen in either order. We count them, and notify the content script when we've seen