jackmoore/colorbox — pull request #367 by maackle (2013-03-06 00:00:12+00:00)
Title: Extra check to prevent duplicate colorboxes

I had a nasty bug where each time I clicked an element to open a colorbox, it created a new #colorbox and #cboxOverlay in the DOM, so n+1 colorboxes would open for n clicks. The only way I could find around it was by patching colorbox itself with this simple check. Hopefully it doesn't break anything else...it seems harmless enough, but it saved the day for our project. I'm surprised I haven't seen anyone else report this, it must be a weird edge case that we found.

I didn't minify or anything, just changed the main js file.