mozilla/pdf.js — pull request #3495 by Snuffleupagus (2013-07-18 22:03:47+00:00)
Title: Check if viewer is embedded only once and cache the result

I just realized that I've managed to check if the viewer is embedded in two separate places in the code. Since it seems much more logical to only check once, and then cache the result, I decided to fix this.