Fix closing selects in pop out windows by moving document event bindings to the container's ownerDocument.
Merge pull request #1745 from mickylad/bind-events-to-owner-document

Fix closing selects in pop out windows by moving document event bindings...