brentd/xray-rails — pull request #47 by mattbrictson (2014-11-09 18:37:17+00:00)
Title: Ensure xray bar works after Turbolinks navigation

Change how `Xray.Bar` is initialized by deferring the lookup of the actual DOM element. If the DOM element has disappeared (e.g. due to Turbolinks navigation replacing the body), re-initialize it. This fixes #37.

My CoffeeScript is a bit rusty; do these changes look OK to you?