Skip to content

Commit b7e9c85

Browse files
author
Emanuele Marchi
committed
revert of switchChange event triggered only on falsy skip
1 parent 8e3fd7c commit b7e9c85

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/js/bootstrap-switch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@
493493
if (_this.$element.is(":radio")) {
494494
$("[name='" + (_this.$element.attr('name')) + "']").not(_this.$element).prop("checked", false).trigger("change.bootstrapSwitch", true);
495495
}
496+
return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
496497
}
497-
return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
498498
};
499499
})(this),
500500
"focus.bootstrapSwitch": (function(_this) {

0 commit comments

Comments
 (0)