diff options
| author | Stephen Blott | 2016-03-26 12:08:43 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-03-26 12:08:43 +0000 | 
| commit | bfeaeae0df589e5163cdc9e99ea9d3c3b1b15038 (patch) | |
| tree | ae5f417e29a060efebaf74b12110dd315a92115a /lib/utils.coffee | |
| parent | 24d305500b4fd3574ed31cff33b177f42cd88457 (diff) | |
| parent | e133f8d2b3d104568959759e8ec7cf907257eb1b (diff) | |
| download | vimium-bfeaeae0df589e5163cdc9e99ea9d3c3b1b15038.tar.bz2 | |
Merge branch 'standardise-foreground-commands'
Conflicts:
	content_scripts/vimium_frontend.coffee
Diffstat (limited to 'lib/utils.coffee')
| -rw-r--r-- | lib/utils.coffee | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/utils.coffee b/lib/utils.coffee index 60d29998..3b2a59a4 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -11,13 +11,13 @@ Utils =    # Takes a dot-notation object string and call the function    # that it points to with the correct value for 'this'. -  invokeCommandString: (str, argArray) -> +  invokeCommandString: (str, args...) ->      components = str.split('.')      obj = window      for component in components[0...-1]        obj = obj[component]      func = obj[components.pop()] -    func.apply(obj, argArray) +    func.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 | 
