diff options
author | anekos | 2015-09-30 23:35:37 +0900 |
---|---|---|
committer | anekos | 2015-09-30 23:35:37 +0900 |
commit | 827f6d6f54de9199f45d1f138d5725cb84131ab8 (patch) | |
tree | 203beb776c5de780d563bb2f6a120aa4f4ce84bb /lo.js | |
parent | de561f4b9cc35ff2cdcf63fdac2d243c0becd7eb (diff) | |
download | vimperator-plugins-827f6d6f54de9199f45d1f138d5725cb84131ab8.tar.bz2 |
Unlets
Diffstat (limited to 'lo.js')
-rw-r--r-- | lo.js | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -236,7 +236,8 @@ let INFO = xml` const WHERE_COMPLETIONS = ['f', 't', 'n', 'b', 'c', 'w']; - let (foihandle) { + (function () { + let foihandle; commands.addUserCommand( ['fo[pen]', 'filteropen'], @@ -299,9 +300,10 @@ let INFO = xml` true ); - } + })(); - let (lolinks = []) { + (function () { + let lolinks = []; commands.addUserCommand( ['lo[pen]', 'linkopen'], 'Filtered open', @@ -334,7 +336,10 @@ let INFO = xml` context.keys = { text: function ({elem, index}) (index + ': ' + join((elem.textContent || elem.href))), description: function ({elem}) (elem.href), - thumbnail: function ({elem}) let (img = elem.querySelector('img')) (img && img.src) + thumbnail: function ({elem}) { + let img = elem.querySelector('img'); + return img && img.src; + } }; context.compare = CompletionContext.Sort.number; let process = Array.slice(context.process); @@ -350,7 +355,7 @@ let INFO = xml` true ); - } + })(); })(); |