1// TODO: Remove/modify after Primefaces update 2// Should not be needed in Primefaces 8.0.3+ 3// https://github.com/primefaces/primefaces/issues/6552 4// Code from github issue has been modified according to the 8.0.0 source code 5// https://github.com/primefaces/primefaces/blob/8.0/src/main/resources/META-INF/resources/primefaces/inputnumber/1-inputnumber.js 6if (PrimeFaces.widget.InputNumber) { 7 PrimeFaces.widget.InputNumber.prototype.init = function(cfg) { 8 PrimeFaces.widget.BaseWidget.prototype.init.call(this, cfg); 9 this.input = $(this.jqId + '_input'); 10 this.hiddenInput = $(this.jqId + '_hinput'); 11 this.plugOptArray = cfg.pluginOptions; 12 this.valueToRender = cfg.valueToRender; 13 this.disabled = cfg.disabled; 14 this.cfg.modifyValueOnWheel = false; 15 16 //bind events if not disabled 17 if (this.disabled) { 18 this.input.attr("disabled", "disabled"); 19 this.input.addClass("ui-state-disabled"); 20 this.hiddenInput.attr("disabled", "disabled"); 21 } 22 23 //Visual effects 24 PrimeFaces.skinInput(this.input); 25 26 this.wrapEvents(); 27 28 this.autonumeric = new AutoNumeric(this.jqId + '_input', this.cfg); 29 30 if (this.valueToRender !== "") { 31 //set the value to the input the plugin will format it. 32 this.autonumeric.set(this.valueToRender); 33 } 34 35 this.copyValueToHiddenInput(); 36 37 //pfs metadata 38 this.input.data(PrimeFaces.CLIENT_ID_DATA, this.id); 39 this.hiddenInput.data(PrimeFaces.CLIENT_ID_DATA, this.id); 40 } 41}
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.