jQuery("#my-switch-input").bootstrapSwitch(bootstrapSwitch_15aea556);
jQuery("#my-switch-input").on('init.bootstrapSwitch', function (a, b, c) {
console.log(this, a, b, c);
});
The problem is that init.bootstrapSwitch event is triggered at the very end of BootstrapSwitch (constructor) - it means it's fired just before my handler is registered.
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/55657241-switchinput-init-bootstrapswitch-plugin-event-is-not-registered-properly?utm_campaign=plugin&utm_content=tracker%2F530581&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F530581&utm_medium=issues&utm_source=github).
I want to display SwitchInput in
DetailView
with custom init event handler:and I get in document's head:
and in footer:
The problem is that
init.bootstrapSwitch
event is triggered at the very end ofBootstrapSwitch
(constructor) - it means it's fired just before my handler is registered.