Created
May 25, 2016 17:08
-
-
Save darrellpratt/61142633bc343110b7348dc65880493b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code uses jQuery to illustrate the Pyramid of Doom | |
(function($) { | |
$(function(){ | |
$("button").click(function(e) { | |
$.get("/test.json", function(data, textStatus, jqXHR) { | |
$(".list").each(function() { | |
$(this).click(function(e) { | |
setTimeout(function() { | |
alert("Hello World!"); | |
}, 1000); | |
}); | |
}); | |
}); | |
}); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment