aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-01-30 11:02:14 +0000
committerStephen Blott2016-01-30 11:02:14 +0000
commitc3373252db73430ec466eb0b81a16a5953975e19 (patch)
treebf45c911b895d1c1166dbc8ee541e4165cea5e65 /lib/utils.coffee
parenta65ca68a0011fd8f9ab1282db8e85476633c0956 (diff)
parent5e65d6bb14c86be2cac95e6d7b61a0fbde1c76cc (diff)
downloadvimium-c3373252db73430ec466eb0b81a16a5953975e19.tar.bz2
Merge pull request #1949 from smblott-github/simpler-hint-string
Simplify hint string generation
Diffstat (limited to 'lib/utils.coffee')
-rw-r--r--lib/utils.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee
index b69b926b..c255102e 100644
--- a/lib/utils.coffee
+++ b/lib/utils.coffee
@@ -281,6 +281,7 @@ Array.copy = (array) -> Array.prototype.slice.call(array, 0)
String::startsWith = (str) -> @indexOf(str) == 0
String::ltrim = -> @replace /^\s+/, ""
String::rtrim = -> @replace /\s+$/, ""
+String::reverse = -> @split("").reverse().join ""
globalRoot = window ? global
globalRoot.extend = (hash1, hash2) ->