aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormrmr19932017-10-28 17:04:37 +0100
committermrmr19932017-10-28 17:04:37 +0100
commitf65720e58e31a0218e0c176a9140520451e5dd7d (patch)
tree0407fe8896233840478dae448fded55bd043ad0c /lib
parent5c4aab3d4488e5d8d64aba122791f86fc9766b99 (diff)
downloadvimium-f65720e58e31a0218e0c176a9140520451e5dd7d.tar.bz2
Remove invokeCommandString, call NormalModeCommands directly
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.coffee8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee
index b5b96844..6f38be8f 100644
--- a/lib/utils.coffee
+++ b/lib/utils.coffee
@@ -32,14 +32,6 @@ Utils =
# Returns true whenever the current page is the extension's background page.
isBackgroundPage: -> @isExtensionPage() and chrome.extension.getBackgroundPage?() == window
- # Takes a dot-notation object string and calls the function that it points to with the correct value for
- # 'this'.
- invokeCommandString: (str, args...) ->
- [names..., name] = str.split '.'
- obj = window
- obj = obj[component] for component in names
- obj[name].apply obj, args
-
# Escape all special characters, so RegExp will parse the string 'as is'.
# Taken from http://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
escapeRegexSpecialCharacters: do ->