context: proto._checkValue = function(acceptEmpty, acceptEdit){  var el = this._textfield.getElement();      if (!el) {    return;  };    if (el.value == "")  {    if (!acceptEmpty)    {      el.value = this.resetValue();        this._textfield.selectAll();    };  }  else    {    // cache working variable    var val = el.value;        // fix leading '0'       if (val.length > 1)    {      while(val.charAt(0) == "0") {        val = val.substr(1, val.length);      };            var f1 = parseInt(val) || 0;            if (f1 != el.value) {        el.value = f1;        return;            };    };        // fix for negative integer handling      if (val == "-" && acceptEmpty && this.getMin() < 0)     {      el.value = val;      return;    };        // parse the string    val = parseInt(val);        // main check routine    var doFix = true;    var fixedVal = this._manager._checkValue(val);        if (isNaN(fixedVal)) {      fixedVal = this._manager.getValue();    };    // handle empty string        if (acceptEmpty && val == "")    {      doFix = false;    }       else if (!isNaN(val))     {      // check for editmode in keypress events      if (acceptEdit)      {        // fix min/max values        if (val > fixedVal && !(val > 0 && fixedVal <= 0) && String(val).length < String(fixedVal).length)        {          doFix = false;          }        else if (val < fixedVal && !(val < 0 && fixedVal >= 0) && String(val).length < String(fixedVal).length)        {          doFix = false;          };      };    };        // apply value fix    if (doFix) {      el.value = fixedVal;    };        // inform manager    if (!acceptEdit) {      this._manager.setValue(fixedVal);    };  };};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/89b838dad08e11b51892c76729a51d1add235d84/QxSpinner.js/clean/qooxdoo/source/script/widgets/QxSpinner.js