Skip to content

Instantly share code, notes, and snippets.

@nathggns
Created September 20, 2013 13:56
Show Gist options
  • Select an option

  • Save nathggns/6637973 to your computer and use it in GitHub Desktop.

Select an option

Save nathggns/6637973 to your computer and use it in GitHub Desktop.
Different ways of generating function
_.once($.fn.slideUp.bind($div, $.fn.remove.bind($div)));
// vs
_.once(function() {
$div.slideUp($.fn.remove.bind($div));
});
// vs
_.once(function() {
$div.slideUp(function() {
$div.remove();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment