1PrimeFaces.widget.ToggleSwitch=PrimeFaces.widget.BaseWidget.extend({init:function(a){this._super(a);this.slider=this.jq.children(".ui-toggleswitch-slider");this.handler=this.slider.children(".ui-toggleswitch-handler");this.input=$(this.jqId+"_input");this.input.is(":disabled")||this._bindEvents();this.input.data(PrimeFaces.CLIENT_ID_DATA,this.id)},_bindEvents:function(){var a=this;this.slider.on("click.toggleSwitch",function(b){a.input.trigger("click").trigger("focus.toggleSwitch")});this.input.on("focus.toggleSwitch", 2function(b){a.jq.addClass("ui-toggleswitch-focus")}).on("blur.toggleSwitch",function(b){a.jq.removeClass("ui-toggleswitch-focus")}).on("keydown.toggleSwitch",function(b){" "===b.key&&b.preventDefault()}).on("keyup.toggleSwitch",function(b){" "===b.key&&(a.toggle(),b.preventDefault())}).on("change.toggleSwitch",function(b){a.isChecked()?a.check(!0):a.uncheck(!0)})},isChecked:function(){return this.input.prop("checked")},toggle:function(){this.isChecked()?this.uncheck():this.check()},check:function(a){this.input.prop("checked", 3!0).attr("aria-checked",!0);a||this.input.trigger("change");this.jq.addClass("ui-toggleswitch-checked")},uncheck:function(a){this.input.prop("checked",!1).attr("aria-checked",!1);a||this.input.trigger("change");this.jq.removeClass("ui-toggleswitch-checked")},disable:function(){PrimeFaces.utils.disableInputWidget(this.jq,this.input)},enable:function(){PrimeFaces.utils.enableInputWidget(this.jq,this.input)}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.