Use slice to clone array

This commit is contained in:
Kevin Sawicki
2014-01-07 16:08:55 -08:00
parent bcf9dfd236
commit 9d6a01d11c

View File

@@ -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()