I'm using Bootstrap's button thingy
And I have a custom event attached on the buttons
$('.btn').bind('update', function(){
// here I check if the button has the "Active" class and do something
});
$('.btn').click(function(){
// here I trigger my event
$(this).trigger('update');
});
So Bootstrap's click event should add the active class, but it appears it does so after my event, so my active class does not appear to be set within my event :|
Can I somehow run my click event after bootstrap's click event?
test:
As you can see the alert fires before the "Active" class is being set, so before Bootstrap's click event runs (the class state is unreliable to me from my event)