mirror of
https://github.com/atom/atom.git
synced 2026-02-17 10:01:25 -05:00
🐎 Avoid building unnecessary scope chains
This commit is contained in:
@@ -47,3 +47,11 @@ class ScopeDescriptor
|
||||
|
||||
toString: ->
|
||||
@getScopeChain()
|
||||
|
||||
isEqual: (other) ->
|
||||
if @scopes.length isnt other.scopes.length
|
||||
return false
|
||||
for scope, i in @scopes
|
||||
if scope isnt other.scopes[i]
|
||||
return false
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user