javascript - Remove a function along with all callbacks/functions in it -


is there way remove function , remove callbacks/functions inside of it?

example:

var myfunction = function() {      thisfunctionhasacallback(function() {        alert( "i called!" );      });    };    myfunction();    myfunction = undefined;

even if unset myfunction, callback thisfunctionhasacallback still activate when called.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -