Little issue in the code Toggle.prototype.toggle = function () { if (this.$element.prop('checked')) this.off() else this.on() } must be Toggle.prototype.toggle = function (silent) { if (this.$element.prop('checked')) this.off(silent) else this.on(silent) }