Using Chrome's Developer Tools - to find out where a javascript function is being called

Put console.trace() in the function and check console. It will print where a call is coming from.