dist/ustyle.js in ustyle-1.11.1 vs dist/ustyle.js in ustyle-1.12.0

- old
+ new

@@ -767,33 +767,10 @@ return ClassToggler; })(); -window.RadioToggle = (function() { - var defaults = { - $target: $(".us-toggle") - }; - - function RadioToggle(options) { - this.options = Utils.setOptions(options, defaults); - if (this.options.$target) { - this.addEventListeners(); - } else { - throw new Error("No target defined"); - } - } - - RadioToggle.prototype.addEventListeners = function() { - return this.options.$target.on("change", "input:radio", function(e) { - $("input[name='" + this.name + "']").removeClass("checked"); - if (this.checked) { - $(this).addClass("checked"); - } - - return e.stopPropagation(); - }); - }; - - return RadioToggle; - -})(); +window.RadioToggle = function() { + var message = "RadioToggle is now deprecated"; + if (window.Raven) window.Raven.captureMessage(message); + console.warn(message); +};