diff options
| author | Stephen Blott | 2015-01-16 12:08:42 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2015-01-16 13:42:32 +0000 | 
| commit | cd49c88eaad6550ba768159347be6c88f1c26d15 (patch) | |
| tree | 43702a2e9e074ad2e23f9c51d3c5fabf6afa3d76 /lib | |
| parent | bbc7257842293fbd58dd2f84a58c86691ceae3e1 (diff) | |
| download | vimium-cd49c88eaad6550ba768159347be6c88f1c26d15.tar.bz2 | |
Modes; clean up.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/utils.coffee | 18 | 
1 files changed, 0 insertions, 18 deletions
| diff --git a/lib/utils.coffee b/lib/utils.coffee index a7bfc440..661f7e84 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -152,24 +152,6 @@ Utils =    # locale-sensitive uppercase detection    hasUpperCase: (s) -> s.toLowerCase() != s -  # Utility class.  This can help different software components to interact without having to share much logic -  # and/or state.  See InsertModeTrigger for an example. -  # suppressedResult is the value to be returned when a function call is suppressed. -  Suppressor: class Suppressor -    constructor: (@suppressedResult = null)-> -      @count = 0 - -    suppress: -> @count += 1 -    unsuppress: -> @count -= 1 - -    runSuppresed: (func) -> -      @suppress() -      func() -      @unsuppress() - -    unlessSuppressed: (func) -> -      if 0 < @count then @suppressedResult else func() -  # 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 = -> | 
