+function ($) { 'use strict'; // SWITCH PUBLIC CLASS DEFINITION // ============================== var Switch = function (element, options) { this.$element = $(element); this.settings = { baseClass: this.$element.data('base-class'), offClass: this.$element.data('off-class'), onClass: this.$element.data('on-class'), 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-light-haze', onClass: 'switch-color-green', onOffCallback: function () {}, onOnCallback: function () {}, text: { off: '', on: '' } }; Switch.prototype.constructor = Switch; Switch.prototype.init = function () { var $switchHandle = $(''); var $switchOn = $('