olance / jQuery-switchButton

jQuery UI iPhone-like switch button
111 stars 102 forks source link

Avoid triggering change event during initialization #4

Open interlee opened 11 years ago

interlee commented 11 years ago

The switch triggers change event during initialization, which can be tricky to handle if we were to use the change event for invoking ajax for updating the changed value. So, the change event won't get called during the initialization.