diff options
| author | Timo Sand | 2013-03-07 12:57:55 +0000 |
|---|---|---|
| committer | Timo Sand | 2013-03-07 12:57:55 +0000 |
| commit | 634e4e951ac88b38d23115705b1e2dee1a06f1d3 (patch) | |
| tree | cfc17f2f9fc597fc90fc49d29f60e60ece392237 /lib/utils.coffee | |
| parent | 8fec3a8a1418c548a158144f7abadba27594ac32 (diff) | |
| download | vimium-634e4e951ac88b38d23115705b1e2dee1a06f1d3.tar.bz2 | |
Replaces workaround and should let travis work again
Diffstat (limited to 'lib/utils.coffee')
| -rw-r--r-- | lib/utils.coffee | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee index 9e15dcc0..f089f89d 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -1,10 +1,8 @@ Utils = getCurrentVersion: -> - # Chromium #15242 will make this XHR request to access the manifest unnecessary - manifestRequest = new XMLHttpRequest() - manifestRequest.open("GET", chrome.extension.getURL("manifest.json"), false) - manifestRequest.send(null) - JSON.parse(manifestRequest.responseText).version + chrome.management.get(chrome.i18n.getMessage('@@extension_id'), (info) -> + info.version + ) # Takes a dot-notation object string and call the function # that it points to with the correct value for 'this'. @@ -136,7 +134,7 @@ Utils = # locale-sensitive uppercase detection hasUpperCase: (s) -> s.toLowerCase() != s - + # This creates a new function out of an existing function, where the new function takes fewer arguments. This # allows us to pass around functions instead of functions + a partial list of arguments. Function::curry = -> |
