fancyapps/fancyBox — pull request #258 by samuelvogel (2012-05-24 15:59:08+00:00)
Title: Refactor `position: fixed` support retrieval in helpers.overlay.beforeShow()

Since we want to already show the overlay when the loading animation is still displayed we assign `overlay.beforeShow` to `overlay.beforeLoad`. But this technique is broken since fancyapps/fancyBox@71f934828180d1c368d0f26944ad96b0633b0b51, because `overlay.beforeShow()` now accesses `F.current`. This can be avoided in this case however since `F.opts.fixed` represents the same value.

Our code:
```javascript
$.fancybox.helpers.overlay.beforeLoad = $.fancybox.helpers.overlay.beforeShow;
$.fancybox.helpers.overlay.beforeShow = $.noop;
```