From 9d6a01d11c3fd38ba68ff766b2a87ca7cd6c19a9 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 7 Jan 2014 16:08:55 -0800 Subject: [PATCH] Use slice to clone array --- src/syntax.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syntax.coffee b/src/syntax.coffee index 20d69a9d8..ac5edb3e0 100644 --- a/src/syntax.coffee +++ b/src/syntax.coffee @@ -76,7 +76,7 @@ class Syntax extends GrammarRegistry _.pluck matchingScopedProperties, 'properties' buildScopeElement: (scope) -> - scope = new Array(scope...) + scope = scope.slice() element = $$ -> elementsForRemainingScopes = => classString = scope.shift()