Stanford-Online/edx-platform — pull request #119 by stvstnfrd (2014-09-10 16:50:26+00:00)
Title: NOOP on setupFullScreenImage

Something appears to have changed, with regards to JavaScript loading
via Studio. The function in-question, `setupFullScreenImage`, still
behaves as intended in LMS. However, it fails in Studio despite being
(seemingly?) present in the compiled `cms-modules-xxx.js` file which is
loaded into Studio pages.

This commit defines an in-line NOOP definition of the function, to
ensure that it is always defined in Studio. The feature degrades
gracefully and will now simply render as an image link that leads
directly to the image URL.

Note: LMS is unaffected by both the problem and temporary solution.

This commit must be reverted once we diagnose and resolve the original
issue.