mozilla/bedrock — pull request #1142 by jpetto (2013-08-08 19:14:52+00:00)
Title: Improve performance & fix .contains bug. Bug 902697.

A more comprehensive fix than PR 1141. Enables focus outside of modal check for non-Fx browsers.

Should also improve performance, as event handlers are removed when modal is closed.