From b5c0b8da794407bc72f9f43da40422ed23e3899e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Tue, 30 Dec 2014 10:58:46 +0000 Subject: Exclusions; use querySelector to find sub-elements. As @philc pointed out in #1366, this is less brittle. --- lib/utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils.coffee') diff --git a/lib/utils.coffee b/lib/utils.coffee index 81b0fb49..05ebd071 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -111,7 +111,7 @@ Utils = isString: (obj) -> typeof obj == 'string' or obj instanceof String # Transform "zjkjkabz" into "abjkz". - uniqueCharacters: (str) -> + distinctCharacters: (str) -> unique = "" for char in str.split("").sort() unique += char unless 0 <= unique.indexOf char -- cgit v1.2.3