Skip to content

Instantly share code, notes, and snippets.

@drobbins
Created April 9, 2012 18:41
Show Gist options
  • Save drobbins/2345357 to your computer and use it in GitHub Desktop.
Save drobbins/2345357 to your computer and use it in GitHub Desktop.
Quanah + jQuery Interaction Bug Demo
<html>
<head>
<title>jQuery + Quanah Error Demo</title>
</head>
<body>
<a id="awesome">Click for Awesome</a>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="https://raw.github.com/wilkinson/quanah/master/src/quanah.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
(function(){
$("a#awesome").bind("click", function(){alert("AWESOME!!!");});
try {
$("a#awesome").remove();
}
catch (e) {
console.log("Oops!:",e.message);
console.error(e);
}
}());
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment