guard object=? test properly

This commit is contained in:
Robby Findler 2014-10-18 10:42:07 -05:00
parent fbdfa36594
commit 496230db12

View File

@ -225,6 +225,7 @@
(let ([frame (test:get-active-top-level-window)])
(let loop ([window window])
(cond [(not window) #f]
[(not frame) #f]
[(null? window) #f] ;; is this test needed?
[(object=? window frame) #t]
[else (loop (send window get-parent))]))))