src/aria/widgets/form/Gauge.js
function (newValue) {
            var gaugeSpanIndex = this.showLabel ? 1 : 0;
            var barEl = this.getDom().childNodes[gaugeSpanIndex].firstChild;
            var calcValue = this.__calculateBarWidth(newValue);
            if (barEl !== null && calcValue !== null && calcValue != -1) {
                barEl.style.width = calcValue + "%";
            }
            barEl = null;
        }
function (newValue) {
            var gaugeSpanIndex = this.showLabel ? 1 : 0;
            var barEl = this.getDom().childNodes[gaugeSpanIndex].firstChild;
            var calcValue = this.__calculateBarWidth(newValue);
            if (barEl !== null && calcValue !== null && calcValue != -1) {
                barEl.style.width = calcValue + "%";
            }
            barEl = null;
        }
function ( newValue ) { var gaugeSpanIndex = this . showLabel ? 1 : 0 ; var barEl = this . getDom ( ) . childNodes [ gaugeSpanIndex ] . firstChild ; var calcValue = this . __calculateBarWidth ( newValue ) ; if ( barEl !== null && calcValue !== null && calcValue != - 1 ) { barEl . style . width = calcValue + "%" ; } barEl = null ; }
A private method to set the current value of the gauge
@param {Integer} newValue The new value of the gauge
@private
A private method to set the current value of the gauge