Text only
27 Jun 2010
 
 
Tools: wrap/unwrap  
1
2
3
4
5
6
7
findComponentByRect: (r, exclusionSet) ->
match: null
traverse activeScreen.rootComponent, (comp) ->
unless inSet comp, exclusionSet
if doesRectIntersectRect r, rectOf comp
match: r # don't return yet to find the innermost match
match