var some_name =
{
moving:false,
show : function ()
{
this.moving = true;
$('element').slideDown(5000, function ()
{
this.moving = false; //How to access to attribute "moving" of class some_name?
});
},
}
Question in code.
You can bind the callback function to the current context:
See
jQuery.proxyAlternatively you could do this:
thisis the current context, it’s value depends on how the function is called. You can assignthisto a variable outside of the function, and use this variable instead: