Open blacksheep-dev opened 9 years ago
When added a callback, in options with ajax request. The ajax for on_callback and off_callback was executed on switch init.
After my fix switch inits ok :) and callback are not executed until truely changed the state.
When added a callback, in options with ajax request. The ajax for on_callback and off_callback was executed on switch init.
After my fix switch inits ok :) and callback are not executed until truely changed the state.