Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Redefine undefined outside the scope
<p>First, undefined is defined to <em id="step1"></em></p>
<p>Then, undefined is redefined to <em id="step2"></em></p>
$(document).ready(function() {
undefined = false;
/* We create a self-invoking function to refefine undefined to undefined */
(function() { window.undefined = undefined })();
normalize_css: no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment