diff options
| author | mrmr1993 | 2014-09-02 17:43:41 +0100 |
|---|---|---|
| committer | mrmr1993 | 2014-10-31 07:22:12 +0000 |
| commit | d65f265a6ad137be0db4d8c86879e5123a10087b (patch) | |
| tree | 7be59d25dd26f8d1b5d2641ce76bfbd631cae28b /content_scripts | |
| parent | fdf592b25ead4c4ec919c1d0e6322d2dba48c1f8 (diff) | |
| download | vimium-d65f265a6ad137be0db4d8c86879e5123a10087b.tar.bz2 | |
Add comments about moving the Vomnibar to an iframe
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vomnibar.coffee | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee index 0e19f194..7b3cfdbe 100644 --- a/content_scripts/vomnibar.coffee +++ b/content_scripts/vomnibar.coffee @@ -1,3 +1,6 @@ +# +# This wraps the vomnibar iframe, which we inject into the page to provide the vomnibar. +# Vomnibar = vomnibarElement: null @@ -21,6 +24,11 @@ Vomnibar = newTab: true } + # This function opens the vomnibar. It accepts options, a map with the values: + # completer - The completer to fetch results from. + # query - Optional. Text to prefill the Vomnibar with. + # selectFirst - Optional, boolean. Whether to select the first entry. + # newTab - Optional, boolean. Whether to open the result in a new tab. open: (options) -> unless @vomnibarElement? @vomnibarElement = document.createElement "iframe" |
