Code cleanup

This commit is contained in:
Jeff 2017-03-09 17:49:54 -08:00 committed by Jeff Parsons
commit 3a9cd5cf04
24 changed files with 17 additions and 33 deletions

View file

@ -127,7 +127,6 @@ function commandMachine(control, fSingle, idMachine, sComponent, sCommand, sValu
if (exports) {
var fnCommand = exports[sCommand];
if (fnCommand) {
//noinspection JSUnresolvedFunction
if (fnCommand.call(component, sValue)) {
if (fSingle) control.disabled = true;
return true;

View file

@ -182,8 +182,8 @@ class Str {
if (n < 0) {
n += Math.pow(radix, cch);
}
if (n < 0 || n >= Math.pow(radix, cch)) {
n = null;
if (n >= Math.pow(radix, cch)) {
cch = Math.ceil(Math.log(n) / Math.log(radix));
}
}
if (n == null) {