Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created March 26, 2017 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonLaster/d67b90d169d21896d8e69f104afdf19a to your computer and use it in GitHub Desktop.
Save jasonLaster/d67b90d169d21896d8e69f104afdf19a to your computer and use it in GitHub Desktop.
<html>
<body>
<script>
(function() {
var A = {};
window.A = A;
(A.F = function() {
A.G();
}), (A.G = function() {
function _G() {}
A.H();
}), (A.H = function() {
A.I();
}), (A.I = function() {
function _I() {}
A.J();
});
A.J = function() {
function _J() {}
A.K();
};
A.K = function() {
console.log(123);
};
window.addEventListener('click', A.F, false);
})();
</script>
<!-- a bit confusing -->
<script>
(function() {
var A = {};
window.A = A;
(A.F = function() {
A.G();
}), (A.G = function() {
function _G() {}
A.H();
}), (A.H = function() {
A.I();
}), (A.I = function() {
function _I() {}
A.J();
});
A.J = function() {
function _J() {}
A.K();
};
A.K = function() {
console.log(123);
};
window.addEventListener('wheel', A.F, false);
})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment