In the following piece of code, I want to pass delta argument into the function being called by fadeOut, without having to set a variable outside the scope of those functions. Is it possible?
$(window).bind('mousewheel', function(event, delta, deltaX, deltaY) {
$('#view img').fadeOut('slow', function() {
$('.view-loading').fadeIn('fast');
showcase.rotate(delta);
});
});
deltaalready available to the inner function via the closure in your example?