A developer will run into a bunch of different issues when working in a team environment. Merge fails, stepping on code changes, and disagreements on..well pretty much everything…come to mind.
We have been using Colorbox as the jquery plugin of choice for our modals. We have different modals that we use and occasionally one area of the site will have multiple triggers to multiple windows. We noticed that there were some artifacts in the background of the modal that were other modals that we *thought* weren’t being triggered. When I dug into the code I found that there were global event listeners that were custom to the Colorbox plugin that were being used in the code. cbox_complete, cbox_cleanup, etc are all GLOBAL EVENT LISTENERS…when you read the dox you need to mentally map event listeners like that with other document bound listeners like keyup, mouseup, etc. Those global events will trigger other events that you may not realize.
So if you must use global event listeners, do so with caution. Also, check the dox. Maybe there are instance specific methods you can call. That way, your code will play nice with everyone.