Disabling function inside a component

Does anybody knows how to disable a function from a component using prototype method. I have tried everything and i cannot disable anything within that component.

Thanks for any help,

Regards

Jerome