+function ($) { 'use strict'; // SWITCH PUBLIC CLASS DEFINITION // ============================== var Switch = function (element, options) { this.$element = $(element); this.settings = { baseClass: this.$element.data('base-class') || Switch.DEFAULTS.baseClass, offClass: this.$element.data('off-class') || Switch.DEFAULTS.offClass, onClass: this.$element.data('on-class') || Switch.DEFAULTS.onClass, text: { off: this.$element.data('text-off') || Switch.DEFAULTS.text.off, on: this.$element.data('text-on') || Switch.DEFAULTS.text.on } }; this.options = $.extend({}, Switch.DEFAULTS, this.settings, options); this.init(); }; Switch.VERSION = '1.0.0'; Switch.DEFAULTS = { baseClass: 'switch', offClass: 'switch-color-haze', onClass: 'switch-color-primary', onOffCallback: function () {}, onOnCallback: function () {}, text: { off: '', on: '' } }; Switch.prototype.constructor = Switch; Switch.prototype.init = function () { var $switchHandle = $(''); var $switchOn = $('