mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Use slice to clone array
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user