From e238356fb08a9a77eb57f73d0d4b3579ce68b26a Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 23 Nov 2014 14:16:43 +0000 Subject: Frames; more tidy up. --- background_scripts/main.coffee | 4 ++-- 1 file 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 = -- cgit v1.2.3