Can I catch (trigger event) when a certain function in a big, uneditable library is called?
// big js library
var biglibrary = {
runme: function(arguments){
// do something...
},
otherfunctions: function(.....
}
Now how can I outside above catch / notice when runme is called? Can I? I tried something like this ->
$(biglibrary).on('runme', function(){
// function was called !!!
});