Skip to content

Instantly share code, notes, and snippets.

@levity
Created August 9, 2011 00:25
Show Gist options
  • Save levity/1133131 to your computer and use it in GitHub Desktop.
Save levity/1133131 to your computer and use it in GitHub Desktop.
jQuery auto-retries if a callback fails!?
<html>
<body>
<div id="foo"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$('#foo').hide().slideDown(null, function() {
x = intentionally_cause_error;
})
})
</script>
</body>
</html>
@levity
Copy link
Author

levity commented Aug 9, 2011

resolution, thx to #jquery on freenode: (null, func) isn't the right method signature. it's just (func). hell of a side-effect for that mistake though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment