twitter/bootstrap — Issue #1863: namespaced events in javascript plugins
Author: andriijas
Created: 2012-02-09 08:29:56+00:00
State: open

Hi

I have tabs in collapsable containers.

Im doing something like

$(document).on('show','.accordion-body', function(e){});

That code will fire when i click tabs in the accordion body and when the accordion body is shown.
I only want it to fire when the accordion body is shown

Therefor I would like to do:

$(document).on('show.collapse','.accordion-body', function(e){});

Since jquery already supports namespaced events this shouldn't be a problem, or?