yairEO/photobox — pull request #30 by glebm (2013-05-20 07:49:11+00:00)
Title: idempotent doc ready handler (turbolinks compat)

this makes dom ready idempotent, making it possible to use pb in turbolinks

a turbolinks user would then need to expose Photobox and do

$(document).on('page:restore', window.Photobox.initOverlayDom)