diff options
| author | Stephen Blott | 2014-11-23 14:16:43 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-11-23 14:16:43 +0000 |
| commit | e238356fb08a9a77eb57f73d0d4b3579ce68b26a (patch) | |
| tree | 95f59a462b927b0e8ea41fae120e49225ad80fef /background_scripts | |
| parent | 91b123a40e1d5eb54e771461e271f94051618c62 (diff) | |
| download | vimium-e238356fb08a9a77eb57f73d0d4b3579ce68b26a.tar.bz2 | |
Frames; more tidy up.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index cda4f118..98dc3620 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -609,13 +609,13 @@ unregisterFrame = (request, sender) -> updateOpenTabs sender.tab else removingCurrent = frameIdsForTab[tabId].length and frameIdsForTab[tabId][0] == request.frameId - frameIdsForTab[tabId] = (id for id in frameIdsForTab[tabId] when id != request.frameId) + frameIdsForTab[tabId] = frameIdsForTab[tabId].filter (id) -> id != request.frameId BackGroundCommands.nextFrame 0 if removingCurrent handleFrameFocused = (request, sender) -> tabId = sender.tab.id frameIdsForTab[tabId] = - [request.frameId, (id for id in frameIdsForTab[tabId] when id != request.frameId)...] + [request.frameId, (frameIdsForTab[tabId].filter (id) -> id != request.frameId)...] # Port handler mapping portHandlers = |
