From e67fa27f24135ae060d850c07cc5a3a124273402 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Thu, 25 Oct 2012 01:50:42 -0400 Subject: Factor out scrolling code into a new file. Also fix a bunch of div-scrolling behavior. Closes #486. --- lib/utils.coffee | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 = -> -- cgit v1.2.3