aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJez Ng2012-10-25 01:50:42 -0400
committerJez Ng2012-10-29 17:52:29 -0400
commite67fa27f24135ae060d850c07cc5a3a124273402 (patch)
tree28d6461184d18bf109696757b1ff412e21529174 /lib
parentee971406840bd13a43342a8669ceb062c867194f (diff)
downloadvimium-e67fa27f24135ae060d850c07cc5a3a124273402.tar.bz2
Factor out scrolling code into a new file.
Also fix a bunch of div-scrolling behavior. Closes #486.
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee
index a44bc06c..c92fa1ff 100644
--- a/lib/utils.coffee
+++ b/lib/utils.coffee
@@ -108,6 +108,9 @@ Utils =
else
Utils.createSearchUrl string
+ # detects both literals and dynamically created strings
+ isString: (obj) -> typeof obj == 'string' or obj instanceof String
+
# 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 = ->