As arguments.callee
is going to be deprecated, what would I use of instead of arguments.callee` in the following expression:
var self = this;
this.async(function(){
if(test()){
then();
}else{
self.async(arguments.callee);
}
});
This should work. But i'm not sure if it works in all browsers.
var self = this;
this.async(function someMethod(){
if(test()){
then();
}else{
self.async(someMethod);
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With