From 879ff43d9f0b6c4f75dd86d643addf63581dee79 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Sat, 1 Sep 2012 23:41:05 -0700 Subject: Add a few missed exports to main.coffee --- background_scripts/main.coffee | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 118d9839..56b6e313 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -79,10 +79,8 @@ isEnabledForUrl = (request) -> isEnabled = false if request.url.match(regexp) { isEnabledForUrl: isEnabled } -# # Called by the popup UI. Strips leading/trailing whitespace and ignores empty strings. -# -addExcludedUrl = (url) -> +root.addExcludedUrl = (url) -> return unless url = url.trim() excludedUrls = Settings.get("excludedUrls") @@ -97,10 +95,9 @@ getShowAdvancedCommands = (request) -> Settings.get("helpDialog_showAdvancedComm saveHelpDialogSettings = (request) -> Settings.set("helpDialog_showAdvancedCommands", request.showAdvancedCommands) -# # Retrieves the help dialog HTML template from a file, and populates it with the latest keybindings. -# -helpDialogHtml = (showUnboundCommands, showCommandNames, customTitle) -> +# This is called by options.coffee. +root.helpDialogHtml = (showUnboundCommands, showCommandNames, customTitle) -> commandsToKey = {} for key of Commands.keyToCommandRegistry command = Commands.keyToCommandRegistry[key].command @@ -393,7 +390,8 @@ populateSingleKeyCommands = -> if (getActualKeyStrokeLength(key) == 1) singleKeyCommands.push(key) -refreshCompletionKeysAfterMappingSave = -> +# Invoked by options.coffee. +root.refreshCompletionKeysAfterMappingSave = -> validFirstKeys = {} singleKeyCommands = [] -- cgit v1.2.3